def trigger(self):
if self.last_button:<EOL><INDENT>button_index = min(self.last_button, len(self.callbacks)) - <NUM_LIT:1><EOL>click_style = <NUM_LIT:0> if self.clicks == <NUM_LIT:1> else <NUM_LIT:1><EOL>callback = self.callbacks[button_index][click_style]<EOL>if callback:<EOL><INDENT>if isinstance(callback, str):<EOL><INDENT>callback_name = callback<EOL>callback_args = []<EOL><DEDENT>else:<EOL><INDENT>callback_name = callback[<NUM_LIT:0>]<EOL>callback_args = callback[<NUM_LIT:1>:]<EOL><DEDENT>callback_function = getattr(self.parent.module, callback_name)<EOL>callback_function(*callback_args)<EOL>self.parent.module.run()<EOL><DEDENT>else:<EOL><INDENT>self.parent.py3.prevent_refresh()<EOL><DEDENT><DEDENT>self.last_button = None<EOL>self.clicks = <NUM_LIT:0><EOL>
Actually trigger the event