MCPcopy Index your code
hub / github.com/python/cpython / _grid_configure

Method _grid_configure

Lib/tkinter/__init__.py:1987–2006  ·  view source on GitHub ↗

Internal function.

(self, command, index, cnf, kw)

Source from the content-addressed store, hash-verified

1985 return value
1986
1987 def _grid_configure(self, command, index, cnf, kw):
1988 """Internal function."""
1989 if isinstance(cnf, str) and not kw:
1990 if cnf[-1:] == '_':
1991 cnf = cnf[:-1]
1992 if cnf[:1] != '-':
1993 cnf = '-'+cnf
1994 options = (cnf,)
1995 else:
1996 options = self._options(cnf, kw)
1997 if not options:
1998 return _splitdict(
1999 self.tk,
2000 self.tk.call('grid', command, self._w, index),
2001 conv=self._gridconvvalue)
2002 res = self.tk.call(
2003 ('grid', command, self._w, index)
2004 + options)
2005 if len(options) == 1:
2006 return self._gridconvvalue(res)
2007
2008 def grid_columnconfigure(self, index, cnf={}, **kw):
2009 """Configure column INDEX of a grid.

Callers 2

grid_columnconfigureMethod · 0.95
grid_rowconfigureMethod · 0.95

Calls 4

_optionsMethod · 0.95
_gridconvvalueMethod · 0.95
_splitdictFunction · 0.85
callMethod · 0.45

Tested by

no test coverage detected