code: def _states(self):
          
  
          # The currently visible table
          self.current_table = 0
  
          # The cell that has been selected before the latest selection
          self._last_selected_cell = 0, 0, 0
  
          # If we are viewing cells based on their frozen status or normally
          #  (When true, a cross-hatch is displayed for frozen cells)
          self._view_frozen = False
  
          # Timer for updating frozen cells
          self.timer_running = False
docs: Sets grid states