Ejemplo n.º 1
0
def launch():
	freeze_support()
	check_app_running()
	me = singleton.SingleInstance()
	windows_appusermodelid()
	app = QtGui.QApplication(sys.argv)
	QtGui.QApplication.setQuitOnLastWindowClosed(False)
	if check_settings() == False or is_user_info_invalid() == True:
		waiting = WaitingWindow()
	else:
		main = MainWindow()
	sys.exit(app.exec_())
Ejemplo n.º 2
0
def launch():
    freeze_support()
    check_app_running()
    me = singleton.SingleInstance()
    if sys.platform == "win32":
        windows_appusermodelid()
    app = QApplication(sys.argv)
    app.setWindowIcon(QtGui.QIcon(resource_path("icons/windows_icon.ico")))
    QApplication.setQuitOnLastWindowClosed(False)
    if check_settings() == False or is_user_info_invalid() == True:
        waiting = WaitingWindow()
    else:
        main = MainWindow()
    sys.exit(app.exec_())
Ejemplo n.º 3
0
def launch():
	freeze_support()
	check_app_running()
	me = singleton.SingleInstance()
	if sys.platform == 'win32':
		windows_appusermodelid()
	app = QApplication(sys.argv)
	app.setWindowIcon(QtGui.QIcon(resource_path('icons/windows_icon.ico')))
	QApplication.setQuitOnLastWindowClosed(False)
	if check_settings() == False or is_user_info_invalid() == True:
		waiting = WaitingWindow()
	else:
		main = MainWindow()
	sys.exit(app.exec_())
Ejemplo n.º 4
0
	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()
Ejemplo n.º 5
0
	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()
Ejemplo n.º 6
0
 def check_db(self):
     if check_settings() == True and is_user_info_invalid() == False:
         time.sleep(0.2)
         self.caught_credentials()
Ejemplo n.º 7
0
	def check_db(self):
		if check_settings() == True and is_user_info_invalid() == False:
			time.sleep(0.2)
			self.caught_credentials()