355 scheme.setFlags(QWebEngineUrlScheme.Flag.SecureScheme) |
355 scheme.setFlags(QWebEngineUrlScheme.Flag.SecureScheme) |
356 QWebEngineUrlScheme.registerScheme(scheme) |
356 QWebEngineUrlScheme.registerScheme(scheme) |
357 |
357 |
358 app = EricApplication(args) |
358 app = EricApplication(args) |
359 |
359 |
360 logging.debug("Importing Preferences") |
360 logging.getLogger(__name__).debug("Importing Preferences") |
361 from eric7 import Preferences # __IGNORE_WARNING_I101__ |
361 from eric7 import Preferences # __IGNORE_WARNING_I101__ |
362 |
362 |
363 if Preferences.getUI("SingleApplicationMode"): |
363 if Preferences.getUI("SingleApplicationMode"): |
364 handleSingleApplication() |
364 handleSingleApplication() |
365 |
365 |
404 from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I101__ |
404 from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I101__ |
405 |
405 |
406 initSSL() |
406 initSSL() |
407 |
407 |
408 splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting...")) |
408 splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting...")) |
|
409 logging.getLogger(__name__).debug( |
|
410 QCoreApplication.translate("eric7_ide", "Starting...") |
|
411 ) |
|
412 |
409 # We can only import these after creating the EricApplication because they |
413 # We can only import these after creating the EricApplication because they |
410 # make Qt calls that need the EricApplication to exist. |
414 # make Qt calls that need the EricApplication to exist. |
411 from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I101__ |
415 from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I101__ |
412 |
416 |
413 splash.showMessage( |
417 splash.showMessage( |
|
418 QCoreApplication.translate("eric7_ide", "Generating Main Window...") |
|
419 ) |
|
420 logging.getLogger(__name__).debug( |
414 QCoreApplication.translate("eric7_ide", "Generating Main Window...") |
421 QCoreApplication.translate("eric7_ide", "Generating Main Window...") |
415 ) |
422 ) |
416 mainWindow = UserInterface( |
423 mainWindow = UserInterface( |
417 app, |
424 app, |
418 loc, |
425 loc, |
441 eMsg.setMinimumSize(600, 400) |
448 eMsg.setMinimumSize(600, 400) |
442 |
449 |
443 # start the event loop |
450 # start the event loop |
444 inMainLoop = True |
451 inMainLoop = True |
445 res = app.exec() |
452 res = app.exec() |
446 logging.debug("Shutting down, result %d", res) |
453 logging.getLogger(__name__).debug("Shutting down, result %d", res) |
447 logging.shutdown() |
454 logging.shutdown() |
448 sys.exit(res) |
455 sys.exit(res) |
449 |
456 |
450 |
457 |
451 if __name__ == "__main__": |
458 if __name__ == "__main__": |