(self, command, index, cnf, kw)
Internal function.
Internal function.
Internal function .
def _grid_configure(self, command, index, cnf, kw):
        """Internal function."""
        if isinstance(cnf, str) and not kw:
            if cnf[-1:] == '_':
                cnf = cnf[:-1]
            if cnf[:1] != '-':
                cnf = '-'+cnf
            options = (cnf,)
        else:
            options = self._options(cnf, kw)
        if not options:
            return _splitdict(
                self.tk,
                self.tk.call('grid', command, self._w, index),
                conv=self._gridconvvalue)
        res = self.tk.call(
                  ('grid', command, self._w, index)
                  + options)
        if len(options) == 1:
            return self._gridconvvalue(res)
def _grid_configure ( self , command , index , cnf , kw ) : if isinstance ( cnf , str ) and not kw : if cnf [ - 1 : ] == '_' : cnf = cnf [ : - 1 ] if cnf [ : 1 ] != '-' : cnf = '-' + cnf options = ( cnf , ) else : options = self . _options ( cnf , kw ) if not options : return _splitdict ( self . tk , self . tk . call ( 'grid' , command , self . _w , index ) , conv = self . _gridconvvalue ) res = self . tk . call ( ( 'grid' , command , self . _w , index ) + options ) if len ( options ) == 1 : return self . _gridconvvalue ( res )