Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
settingsHandler = SettingsHandler()
settingsHandler.setup()
setup_logging()
app = QtGui.QApplication(sys.argv)
iconpath = resource_path(os.path.join(ICN_DIR, 'discopy.ico'))
start = time()
splashpath = resource_path(os.path.join(ICN_DIR, SPLSH_SCRN))
splash = QtGui.QSplashScreen(QtGui.QPixmap(splashpath))
splash.show()
while time() - start < 2:
sleep(0.001)
app.processEvents()
win = DiscoPy(
Ui_MainWindow(),
settingsHandler,
Client('discopy/0.1',
CONSUMER_KEY, CONSUMER_SECRET,
TOKEN, SECRET),
NameBuilder(),
TagData,
ImageHandler())
win.setWindowIcon(QtGui.QIcon(iconpath))
win.set_rename_dialog(RenameDialog(settingsHandler, win))
splash.finish(win)
# import ctypes
# appid = 'discopy.0.1'
# ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(appid)