def on_click(self, event):
if event["<STR_LIT>"] == self.button_toggle:<EOL><INDENT>if event.get("<STR_LIT:index>") == "<STR_LIT>" and self.py3.is_my_event(event):<EOL><INDENT>self.urgent = False<EOL>self.open = not self.open<EOL><DEDENT><DEDENT>
Switch the displayed module or pass the event on to the active module