def _handle_left_click(self, event): # If the icon is blinking, a left click shouldn't toggle the main # window's shown state if self.icon.is_blinking(): self.icon.force_stop() else: wxgui_api.toggle_main_window()
def toggle_main_window(self, event): wxgui_api.toggle_main_window()