271 app = EricApplication(argv) |
271 app = EricApplication(argv) |
272 application = app |
272 application = app |
273 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) |
273 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) |
274 |
274 |
275 # the following code depends upon a valid application object |
275 # the following code depends upon a valid application object |
276 from eric7 import Preferences |
276 from eric7 import Preferences # __IGNORE_WARNING_I101__ |
277 |
277 |
278 # set the application style sheet |
278 # set the application style sheet |
279 app.setStyleSheetFile(Preferences.getUI("StyleSheet")) |
279 app.setStyleSheetFile(Preferences.getUI("StyleSheet")) |
280 |
280 |
281 initializeResourceSearchPath(app) |
281 initializeResourceSearchPath(app) |
297 if raiseIt: |
297 if raiseIt: |
298 w.raise_() |
298 w.raise_() |
299 |
299 |
300 if installErrorHandler: |
300 if installErrorHandler: |
301 # generate a graphical error handler |
301 # generate a graphical error handler |
302 from eric7.EricWidgets import EricErrorMessage |
302 from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I101__ |
303 |
303 |
304 eMsg = EricErrorMessage.qtHandler() |
304 eMsg = EricErrorMessage.qtHandler() |
305 eMsg.setMinimumSize(600, 400) |
305 eMsg.setMinimumSize(600, 400) |
306 |
306 |
307 return app.exec() |
307 return app.exec() |