src/eric7/Toolbox/Startup.py

branch
eric7
changeset 11148
15e30f0c76a8
parent 11090
f5f5f5803935
equal deleted inserted replaced
11147:dee6e106b4d3 11148:15e30f0c76a8
216 app = EricApplication(sys.argv) 216 app = EricApplication(sys.argv)
217 application = app 217 application = app
218 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) 218 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed)
219 219
220 # the following code depends upon a valid application object 220 # the following code depends upon a valid application object
221 from eric7 import Preferences # __IGNORE_WARNING_I101__ 221 from eric7 import Preferences # __IGNORE_WARNING_I-101__
222 222
223 # set the application style sheet 223 # set the application style sheet
224 app.setStyleSheetFile(Preferences.getUI("StyleSheet")) 224 app.setStyleSheetFile(Preferences.getUI("StyleSheet"))
225 225
226 initializeResourceSearchPath(app) 226 initializeResourceSearchPath(app)
244 if raiseIt: 244 if raiseIt:
245 w.raise_() 245 w.raise_()
246 246
247 if installErrorHandler: 247 if installErrorHandler:
248 # generate a graphical error handler 248 # generate a graphical error handler
249 from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I101__ 249 from eric7.EricWidgets import EricErrorMessage # __IGNORE_WARNING_I-101__
250 250
251 eMsg = EricErrorMessage.qtHandler( 251 eMsg = EricErrorMessage.qtHandler(
252 minSeverity=Preferences.getUI("MinimumMessageTypeSeverity") 252 minSeverity=Preferences.getUI("MinimumMessageTypeSeverity")
253 ) 253 )
254 eMsg.setMinimumSize(600, 400) 254 eMsg.setMinimumSize(600, 400)
255 255
256 return app.exec() 256 return app.exec()
257 257
258 258
259 # 259 #
260 # eflag: noqa = M801 260 # eflag: noqa = M-801

eric ide

mercurial