MCPcopy Index your code
hub / github.com/RustPython/RustPython / _grid_configure

Method _grid_configure

Lib/tkinter/__init__.py:1931–1950  ·  view source on GitHub ↗

Internal function.

(self, command, index, cnf, kw)

Source from the content-addressed store, hash-verified

1929 return value
1930
1931 def _grid_configure(self, command, index, cnf, kw):
1932 """Internal function."""
1933 if isinstance(cnf, str) and not kw:
1934 if cnf[-1:] == '_':
1935 cnf = cnf[:-1]
1936 if cnf[:1] != '-':
1937 cnf = '-'+cnf
1938 options = (cnf,)
1939 else:
1940 options = self._options(cnf, kw)
1941 if not options:
1942 return _splitdict(
1943 self.tk,
1944 self.tk.call('grid', command, self._w, index),
1945 conv=self._gridconvvalue)
1946 res = self.tk.call(
1947 ('grid', command, self._w, index)
1948 + options)
1949 if len(options) == 1:
1950 return self._gridconvvalue(res)
1951
1952 def grid_columnconfigure(self, index, cnf={}, **kw):
1953 """Configure column INDEX of a grid.

Callers 2

grid_columnconfigureMethod · 0.95
grid_rowconfigureMethod · 0.95

Calls 6

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

Tested by

no test coverage detected