diff options
author | rahulp13 | 2020-07-24 01:57:19 +0530 |
---|---|---|
committer | rahulp13 | 2020-07-24 01:57:19 +0530 |
commit | cde494dc77c0d48cffa1e9aca77121fec0e94cf0 (patch) | |
tree | feec084c3df01ad0f79a3dca19d29878ed5ef019 /src/frontEnd/Application.py | |
parent | 8173e49d1a2d01d706dc8159aff507f7fc021964 (diff) | |
download | eSim-cde494dc77c0d48cffa1e9aca77121fec0e94cf0.tar.gz eSim-cde494dc77c0d48cffa1e9aca77121fec0e94cf0.tar.bz2 eSim-cde494dc77c0d48cffa1e9aca77121fec0e94cf0.zip |
fixed modality of workspace dialog with splash screen
Diffstat (limited to 'src/frontEnd/Application.py')
-rw-r--r-- | src/frontEnd/Application.py | 12 |
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_()) |