summaryrefslogtreecommitdiff
path: root/src/frontEnd/Application.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontEnd/Application.py')
-rw-r--r--src/frontEnd/Application.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py
index 6eaf4c9c..cb7a7527 100644
--- a/src/frontEnd/Application.py
+++ b/src/frontEnd/Application.py
@@ -19,8 +19,8 @@
import os
if os.name == 'nt': # noqa
- init_path = ''
from frontEnd import pathmagic # noqa:F401
+ init_path = ''
else:
import pathmagic # noqa:F401
init_path = '../../'
@@ -814,11 +814,15 @@ def main(args):
print("Starting eSim......")
app = QtGui.QApplication(args)
+ appView = Application()
+ appView.hide()
+
splash_pix = QtGui.QPixmap(init_path + 'images/splash_screen_esim.png')
- splash = QtGui.QSplashScreen(splash_pix, QtCore.Qt.WindowStaysOnTopHint)
+ splash = QtGui.QSplashScreen(appView, splash_pix, QtCore.Qt.WindowStaysOnTopHint)
splash.setMask(splash_pix.mask())
+ splash.setDisabled(True)
splash.show()
- appView = Application()
+
appView.splash = splash
appView.obj_workspace.returnWhetherClickedOrNot(appView)
@@ -830,10 +834,10 @@ def main(args):
file.close()
except IOError:
work = 0
+
if work != 0:
appView.obj_workspace.defaultWorkspace()
else:
- appView.hide()
appView.obj_workspace.show()
sys.exit(app.exec_())