def __init__(self): super().__init__() self.init_ui() self.init_tray() self.set_bg_image() set_monitors() self.run_watcher() self.run_uploadmonitor() self.updateGui.connect(self.update_gui) self.authError.connect(self.handle_auth_error) self.maximizeWindow.connect(self.activate_main_window) self.run_loopback() self._last_updated = 0 self.update_gui() if is_user_info_invalid(): self.reauthorise() elif not(len(sys.argv)>1 and sys.argv[1] == '--silent'): self.show()
def __init__(self): super().__init__() self.init_ui() self.init_tray() self.set_bg_image() set_monitors() self.run_watcher() self.run_uploadmonitor() self.updateGui.connect(self.update_gui) self.authError.connect(self.handle_auth_error) self.maximizeWindow.connect(self.activate_main_window) self.run_loopback() self._last_updated = 0 self.update_gui() if is_user_info_invalid(): self.reauthorise() elif not(len(sys.argv)>1 and sys.argv[1] == '--silent'): self.show() else: remove_mac_dock_icon()
def initialization(): savegamedir, savegames = get_current_savegame_filenames() if create_db() == True: # if just created db, add all savegames to it set_monitors() return savegamedir