diff options
author | fahim | 2015-02-11 16:34:48 +0530 |
---|---|---|
committer | fahim | 2015-02-11 16:34:48 +0530 |
commit | 74d560add00621421d366759bcc80900d8e14d8a (patch) | |
tree | a59a72c77b4651dbf88933e9b0dfbd2ce1e9918d /src/frontEnd/Application.py | |
parent | 775f9c18568ad2f7c480fad271e281dbc235e796 (diff) | |
download | eSim-74d560add00621421d366759bcc80900d8e14d8a.tar.gz eSim-74d560add00621421d366759bcc80900d8e14d8a.tar.bz2 eSim-74d560add00621421d366759bcc80900d8e14d8a.zip |
Subject: Added splash screen
Description: Added basic splash screen codewith default image which need to modified in future.
Diffstat (limited to 'src/frontEnd/Application.py')
-rwxr-xr-x | src/frontEnd/Application.py | 36 |
1 files changed, 24 insertions, 12 deletions
diff --git a/src/frontEnd/Application.py b/src/frontEnd/Application.py index 7f783ff3..ccc08248 100755 --- a/src/frontEnd/Application.py +++ b/src/frontEnd/Application.py @@ -18,12 +18,12 @@ #=============================================================================== -from PyQt4 import QtGui +from PyQt4 import QtGui, QtCore from configuration.Appconfig import Appconfig import ViewManagement import Workspace import sys - +import time class Application(QtGui.QMainWindow): """ @@ -111,26 +111,38 @@ def main(args): """ It is main function of the module.It starts the application """ - app = QtGui.QApplication(args) + print "Hello Main" + app = QtGui.QApplication(sys.argv) + + splash_pix = QtGui.QPixmap('../images/FreeEDAlogo.jpg') + splash = QtGui.QSplashScreen(splash_pix,QtCore.Qt.WindowStaysOnTopHint) + progressBar = QtGui.QProgressBar(splash) + splash.setMask(splash_pix.mask()) + splash.show() + + for i in range(0, 100): + progressBar.setValue(i) + t = time.time() + while time.time() < t + 0.1: + app.processEvents() + + time.sleep(2) + appView = Application() appView.show() + splash.finish(appView) sys.exit(app.exec_()) """ - while 1: - print work_space.status_label.text() - if work_space.status_label.text() == 'OK': - print "OK" - appView.show() - break - else: - pass - + appView = Application() + appView.show() + sys.exit(app.exec_()) """ # Call main function if __name__ == '__main__': + # Create and display the splash screen main(sys.argv) |