def on_click(self, event):
button = event["<STR_LIT>"]<EOL>if button == self.button_toggle:<EOL><INDENT>self.toggled = True<EOL>if self.mode == "<STR_LIT>":<EOL><INDENT>self.mode = "<STR_LIT:status>"<EOL><DEDENT>else:<EOL><INDENT>self.mode = "<STR_LIT>"<EOL><DEDENT><DEDENT>elif button == self.button_refresh:<EOL><INDENT>self.idle_time = <NUM_LIT:0><EOL><DEDENT>else:<EOL><INDENT>self.py3.prevent_refresh()<EOL><DEDENT>
Toggle between display modes 'ip' and 'status'