original_docstring: 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.
          
docstring: 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.
docstring_tokens: 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
code_tokens: def resize_widget ( self , widget , row_span , col_span ) : 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
short_docstring: Resize a widget in the grid to new dimensions.
short_docstring_tokens: Resize a widget in the grid to new dimensions .
comment: """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.
          """