def on_click(self, event):
button = event["<STR_LIT>"]<EOL>if button == self.button_pause:<EOL><INDENT>if self.state == "<STR_LIT>":<EOL><INDENT>self.py3.command_run("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.py3.command_run("<STR_LIT>")<EOL><DEDENT><DEDENT>elif button == self.button_stop:<EOL><INDENT>self.py3.command_run("<STR_LIT>")<EOL><DEDENT>elif button == self.button_next:<EOL><INDENT>self.py3.command_run("<STR_LIT>")<EOL><DEDENT>elif button == self.button_previous:<EOL><INDENT>self.py3.command_run("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>self.py3.prevent_refresh()<EOL><DEDENT>
Control moc with mouse clicks.