Internal function.
(self, command, index, cnf, kw)
| 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. |
no test coverage detected