2681:e793289c4362 | 2683:ef93fc7332a2 |
---|---|
17 import io | 17 import io |
18 import time | 18 import time |
19 import logging | 19 import logging |
20 | 20 |
21 from PyQt4.QtCore import qWarning, QLibraryInfo, QTimer | 21 from PyQt4.QtCore import qWarning, QLibraryInfo, QTimer |
22 from PyQt4.QtGui import QApplication, QErrorMessage | 22 from PyQt4.QtGui import QApplication |
23 | 23 |
24 # some global variables needed to start the application | 24 # some global variables needed to start the application |
25 args = None | 25 args = None |
26 mainWindow = None | 26 mainWindow = None |
27 splash = None | 27 splash = None |
251 mainWindow.show() | 251 mainWindow.show() |
252 | 252 |
253 QTimer.singleShot(0, uiStartUp) | 253 QTimer.singleShot(0, uiStartUp) |
254 | 254 |
255 # generate a graphical error handler | 255 # generate a graphical error handler |
256 eMsg = QErrorMessage.qtHandler() | 256 from E5Gui import E5ErrorMessage |
257 eMsg = E5ErrorMessage.qtHandler() | |
257 eMsg.setMinimumSize(600, 400) | 258 eMsg.setMinimumSize(600, 400) |
258 | 259 |
259 # start the event loop | 260 # start the event loop |
260 res = app.exec_() | 261 res = app.exec_() |
261 logging.debug("Shutting down, result {0:d}".format(res)) | 262 logging.debug("Shutting down, result {0:d}".format(res)) |