def on_click(self, event):
if event["<STR_LIT>"] == self.button_toggle:<EOL><INDENT>if "<STR_LIT>" in self.py3.command_output("<STR_LIT>"):<EOL><INDENT>self.py3.command_run("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.py3.command_run("<STR_LIT>")<EOL><DEDENT><DEDENT>if event["<STR_LIT>"] == self.button_off:<EOL><INDENT>self.py3.command_run("<STR_LIT>")<EOL><DEDENT>
Control DPMS with mouse clicks.