code: def new(self, event):
          
  
          # Grid table handles interaction to code_array
  
          self.grid.actions.clear(event.shape)
  
          _grid_table = GridTable(self.grid, self.grid.code_array)
          self.grid.SetTable(_grid_table, True)
  
          # Update toolbars
          self.grid.update_entry_line()
          self.grid.update_attribute_toolbar()
docs: Creates a new spreadsheet. Expects code_array in event.