code: def change_max(self, no_tabs):
          
  
          self.no_tabs = no_tabs
  
          if self.GetValue() >= no_tabs:
              self.SetValue(no_tabs - 1)
docs: Updates to a new number of tables
  
          Fixes current table if out of bounds.
  
          Parameters
          ----------
          no_tabs: Integer
          \tNumber of tables for choice