src/eric7/eric7_ide.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
child 11227
023943c77c42
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
229 client.processArgs(args) 229 client.processArgs(args)
230 sys.exit(0) 230 sys.exit(0)
231 231
232 elif res < 0: 232 elif res < 0:
233 print("eric7: {0}".format(client.errstr())) 233 print("eric7: {0}".format(client.errstr()))
234 # __IGNORE_WARNING_M801__ 234 # __IGNORE_WARNING_M-801__
235 sys.exit(res) 235 sys.exit(res)
236 236
237 237
238 def excepthook(excType, excValue, tracebackobj): 238 def excepthook(excType, excValue, tracebackobj):
239 """ 239 """
294 warning.replace("&", "&amp;").replace(">", "&gt;").replace("<", "&lt;") 294 warning.replace("&", "&amp;").replace(">", "&gt;").replace("<", "&lt;")
295 ) 295 )
296 qWarning(warning) 296 qWarning(warning)
297 else: 297 else:
298 warning = notice + msg + versionInfo 298 warning = notice + msg + versionInfo
299 print(warning) # __IGNORE_WARNING_M801__ 299 print(warning) # __IGNORE_WARNING_M-801__
300 300
301 301
302 def uiStartUp(): 302 def uiStartUp():
303 """ 303 """
304 Global function to finalize the start up of the main UI. 304 Global function to finalize the start up of the main UI.
357 QWebEngineUrlScheme.registerScheme(scheme) 357 QWebEngineUrlScheme.registerScheme(scheme)
358 358
359 app = EricApplication(args) 359 app = EricApplication(args)
360 360
361 logging.getLogger(__name__).debug("Importing Preferences") 361 logging.getLogger(__name__).debug("Importing Preferences")
362 from eric7 import Preferences # __IGNORE_WARNING_I101__ 362 from eric7 import Preferences # __IGNORE_WARNING_I-101__
363 363
364 if Preferences.getUI("SingleApplicationMode"): 364 if Preferences.getUI("SingleApplicationMode"):
365 handleSingleApplication() 365 handleSingleApplication()
366 366
367 # set the application style sheet 367 # set the application style sheet
369 369
370 # set the search path for icons 370 # set the search path for icons
371 Startup.initializeResourceSearchPath(app) 371 Startup.initializeResourceSearchPath(app)
372 372
373 # generate and show a splash window, if not suppressed 373 # generate and show a splash window, if not suppressed
374 from eric7.UI.SplashScreen import ( # __IGNORE_WARNING_I101__ 374 from eric7.UI.SplashScreen import ( # __IGNORE_WARNING_I-101__
375 NoneSplashScreen, 375 NoneSplashScreen,
376 SplashScreen, 376 SplashScreen,
377 ) 377 )
378 378
379 if args.no_splash: 379 if args.no_splash:
400 400
401 # Load translation files and install them 401 # Load translation files and install them
402 loc = Startup.loadTranslators(qtTransDir, app, ("qscintilla",)) 402 loc = Startup.loadTranslators(qtTransDir, app, ("qscintilla",))
403 403
404 # generate a graphical error handler 404 # generate a graphical error handler
405 from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I101__ 405 from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I-101__
406 406
407 eMsg = EricErrorMessage.qtHandler( 407 eMsg = EricErrorMessage.qtHandler(
408 minSeverity=Preferences.getUI("MinimumMessageTypeSeverity") 408 minSeverity=Preferences.getUI("MinimumMessageTypeSeverity")
409 ) 409 )
410 eMsg.setMinimumSize(600, 400) 410 eMsg.setMinimumSize(600, 400)
411 411
412 # Initialize SSL stuff 412 # Initialize SSL stuff
413 from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I101__ 413 from eric7.EricNetwork.EricSslUtilities import initSSL # __IGNORE_WARNING_I-101__
414 414
415 initSSL() 415 initSSL()
416 416
417 splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting...")) 417 splash.showMessage(QCoreApplication.translate("eric7_ide", "Starting..."))
418 logging.getLogger(__name__).debug("Starting...") 418 logging.getLogger(__name__).debug("Starting...")
419 419
420 # We can only import these after creating the EricApplication because they 420 # We can only import these after creating the EricApplication because they
421 # make Qt calls that need the EricApplication to exist. 421 # make Qt calls that need the EricApplication to exist.
422 from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I101__ 422 from eric7.UI.UserInterface import UserInterface # __IGNORE_WARNING_I-101__
423 423
424 splash.showMessage( 424 splash.showMessage(
425 QCoreApplication.translate("eric7_ide", "Generating Main Window...") 425 QCoreApplication.translate("eric7_ide", "Generating Main Window...")
426 ) 426 )
427 logging.getLogger(__name__).debug("Generating Main Window...") 427 logging.getLogger(__name__).debug("Generating Main Window...")

eric ide

mercurial