code: def insert_tabs(self, tab, no_tabs=1):
          
  
          # Mark content as changed
          post_command_event(self.main_window, self.ContentChangedMsg)
  
          self.code_array.insert(tab, no_tabs, axis=2)
  
          # Update TableChoiceIntCtrl
          shape = self.grid.code_array.shape
          post_command_event(self.main_window, self.ResizeGridMsg, shape=shape)
docs: Adds no_tabs tabs before table, appends if tab > maxtabs
  
          and marks grid as changed