code: def OnClearGlobals(self, event):
          
  
          msg = _("Deleting globals and reloading modules cannot be undone."
                  " Proceed?")
          short_msg = _("Really delete globals and modules?")
  
          choice = self.main_window.interfaces.get_warning_choice(msg, short_msg)
  
          if choice:
              self.main_window.grid.actions.clear_globals_reload_modules()
  
              statustext = _("Globals cleared and base modules reloaded.")
              post_command_event(self.main_window, self.main_window.StatusBarMsg,
                                 text=statustext)
docs: Clear globals event handler