class_docstr: Widget for proportionally dividing its internal area into a grid.
  
  This widget will automatically set the position and size of child widgets
  according to provided constraints.
  
  Parameters
  ----------
  spacing : int
      Spacing between widgets.
  **kwargs : dict
      Keyword arguments to pass to `Widget`.
docstr: Create a new Grid and add it as a child widget.
  
  Parameters
  ----------
  row : int
      The row in which to add the widget (0 is the topmost row)
  col : int
      The column in which to add the widget (0 is the leftmost column)
  row_span : int
      The number of rows to be occupied by this widget. Default is 1.
  col_span : int
      The number of columns to be occupied by this widget. Default is 1.
  **kwargs : dict
      Keyword arguments to pass to the new `Grid`.
docstr_tok: ["Create","a","new","Grid","and","add","it","as","a","child","widget",".","Parameters","--","--","--","--","--","row",":","int","The","row","in","which","to","add","the","widget","(","0","is","the","topmost","row",")","col",":","int","The","column","in","which","to","add","the","widget","(","0","is","the","leftmost","column",")","row_span",":","int","The","number","of","rows","to","be","occupied","by","this","widget",".","Default","is","1.","col_span",":","int","The","number","of","columns","to","be","occupied","by","this","widget",".","Default","is","1",".","*","*","kwargs",":","dict","Keyword","arguments","to","pass","to","the","new","`","Grid","`","."]
code: def add_grid(
      self, row=None, col=None, row_span=1, col_span=1, **kwargs
  ):
      """
      Create a new Grid and add it as a child widget.
  
      Parameters
      ----------
      row : int
          The row in which to add the widget (0 is the topmost row)
      col : int
          The column in which to add the widget (0 is the leftmost column)
      row_span : int
          The number of rows to be occupied by this widget. Default is 1.
      col_span : int
          The number of columns to be occupied by this widget. Default is 1.
      **kwargs : dict
          Keyword arguments to pass to the new `Grid`.
      """
      from .grid import Grid
  
      grid = Grid(**kwargs)
      return self.add_widget(grid, row, col, row_span, col_span)
  
imports: from __future__ import division
  import numpy
  from vispy.geometry import Rect
  from .widget import Widget
  from .viewbox import ViewBox
  from kiwisolver import Solver, Variable, UnsatisfiableConstraint
label_desc: Use image node_id 7 for calling the Grid obj's underlying member method code with example usage: obj.add_grid(row, col, row_span, col_span) and returns: self