code: def OnInsertRows(self, event):
          
  
          bbox = self.grid.selection.get_bbox()
  
          if bbox is None or bbox[1][0] is None:
              # Insert rows at cursor
              ins_point = self.grid.actions.cursor[0] - 1
              no_rows = 1
          else:
              # Insert at lower edge of bounding box
              ins_point = bbox[0][0] - 1
              no_rows = self._get_no_rowscols(bbox)[0]
  
          with undo.group(_("Insert rows")):
              self.grid.actions.insert_rows(ins_point, no_rows)
  
          self.grid.GetTable().ResetView()
  
          # Update the default sized cell sizes
          self.grid.actions.zoom()
  
          event.Skip()
docs: Insert the maximum of 1 and the number of selected rows