parameters: (self)
return_statement: return dict
docstring: Return information about the options
          for positioning this widget in a grid.
docstring_summary: Return information about the options
          for positioning this widget in a grid.
docstring_tokens: Return information about the options for positioning this widget in a grid .
function: def grid_info(self):
          """Return information about the options
          for positioning this widget in a grid."""
          words = self.tk.splitlist(
              self.tk.call('grid', 'info', self._w))
          dict = {}
          for i in range(0, len(words), 2):
              key = words[i][1:]
              value = words[i+1]
              if value[:1] == '.':
                  value = self._nametowidget(value)
              dict[key] = value
          return dict
function_tokens: def grid_info ( self ) : words = self . tk . splitlist ( self . tk . call ( 'grid' , 'info' , self . _w ) ) dict = { } for i in range ( 0 , len ( words ) , 2 ) : key = words [ i ] [ 1 : ] value = words [ i + 1 ] if value [ : 1 ] == '.' : value = self . _nametowidget ( value ) dict [ key ] = value return dict