parameters: (self, command, index, cnf, kw)
docstring: Internal function.
docstring_summary: Internal function.
docstring_tokens: Internal function .
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)
function_tokens: 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 )