From 7c0006e80a8a553e9e2485e14cf5beb0b60aa4f5 Mon Sep 17 00:00:00 2001 From: Marco Date: Fri, 17 May 2019 23:53:39 +0200 Subject: [PATCH] Splash screen fix for Linux OS --- artemis.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/artemis.py b/artemis.py index 7b70962..caf0d13 100644 --- a/artemis.py +++ b/artemis.py @@ -3,7 +3,7 @@ from functools import partial import webbrowser import os import sys -from time import sleep +from time import sleep, time from pandas import read_csv @@ -1444,8 +1444,11 @@ if __name__ == '__main__': # img = QPixmap(":/icons/Artemis3.500px.png") # splash = QSplashScreen(img) # splash.show() - # sleep(2) + # start= time() + # while time()-start < 2: + # sleep(0.001) + # my_app.processEvents() + # splash.close() artemis = Artemis() artemis.show() - # splash.finish(w) - sys.exit(my_app.exec_()) + sys.exit(my_app.exec_()) \ No newline at end of file