code: def OnResizeGridDialog(self, event):
          
  
          # Get grid dimensions
  
          new_shape = self.interfaces.get_dimensions_from_user(no_dim=3)
  
          if new_shape is None:
              return
  
          with undo.group(_("Resize grid")):
              self.grid.actions.change_grid_shape(new_shape)
  
          statustext = _("Grid dimensions changed to {shape}.")
          statustext = statustext.format(shape=new_shape)
          post_command_event(self.grid.main_window, self.grid.StatusBarMsg,
                             text=statustext)
  
          event.Skip()
docs: Resizes current grid by appending/deleting rows, cols and tables