code: def on_click(self, event):
          
          if event["button"] == self.button_toggle:
              # we only toggle if button was used
              if event.get("index") == "button" and self.py3.is_my_event(event):
                  self.urgent = False
                  self.open = not self.open
docs: Switch the displayed module or pass the event on to the active module