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: Resize a widget in the grid to new dimensions.
  
  Parameters
  ----------
  widget : Widget
      The widget to resize
  row_span : int
      The number of rows to be occupied by this widget.
  col_span : int
      The number of columns to be occupied by this widget.
docstr_tok: ["Resize","a","widget","in","the","grid","to","new","dimensions",".","Parameters","--","--","--","--","--","widget",":","Widget","The","widget","to","resize","row_span",":","int","The","number","of","rows","to","be","occupied","by","this","widget",".","col_span",":","int","The","number","of","columns","to","be","occupied","by","this","widget","."]
code: def resize_widget(self, widget, row_span, col_span):
      """Resize a widget in the grid to new dimensions.
  
      Parameters
      ----------
      widget : Widget
          The widget to resize
      row_span : int
          The number of rows to be occupied by this widget.
      col_span : int
          The number of columns to be occupied by this widget.
      """
      row = None
      col = None
  
      for r, c, _rspan, _cspan, w in self._grid_widgets.values():
          if w == widget:
              row = r
              col = c
  
              break
  
      if row is None or col is None:
          raise ValueError("%s not found in grid" % widget)
  
      self.remove_widget(widget)
      self.add_widget(widget, row, col, row_span, col_span)
      self._need_solver_recreate = True
  
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 5 for calling the Grid obj's underlying member method code with example usage: obj.resize_widget(widget, row_span, col_span) without return types