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