code: def OnSafeModeExit(self, event):
          
  
          # Run macros
  
          # self.MainGrid.model.pysgrid.sgrid.execute_macros(safe_mode=False)
  
          # Disable menu item for leaving safe mode
  
          self.main_window.main_menu.enable_file_approve(False)
  
          self.main_window.grid.Refresh()
  
          event.Skip()
docs: Safe mode exit event handler