def on_click(self, event):
if event["<STR_LIT>"] == self.button_reset:<EOL><INDENT>self._change_active(<NUM_LIT:0>)<EOL><DEDENT>elif event["<STR_LIT>"] == self.button_change_time_format:<EOL><INDENT>self.active_time_format += <NUM_LIT:1><EOL>if self.active_time_format >= len(self.format_time):<EOL><INDENT>self.active_time_format = <NUM_LIT:0><EOL><DEDENT>time_format = self.format_time[self.active_time_format]<EOL>self.py3.storage_set("<STR_LIT>", time_format)<EOL><DEDENT>elif event["<STR_LIT>"] == self.button_change_format:<EOL><INDENT>self._change_active(<NUM_LIT:1>)<EOL><DEDENT>
Switch the displayed module or pass the event on to the active module