code: def on_edit_grid(self, event):
          
          if not self.changes:
              self.changes = {event.Row}
          else:
              self.changes.add(event.Row)
          #self.changes = True
          try:
              editor = event.GetControl()
              editor.Bind(wx.EVT_KEY_DOWN, self.onEditorKey)
          except AttributeError:
              # if it's a EVT_GRID_EDITOR_SHOWN, it doesn't have the GetControl method
              pass
docs: sets self.changes to true when user edits the grid.
          provides down and up key functionality for exiting the editor