185 loc = None |
185 loc = None |
186 return loc |
186 return loc |
187 |
187 |
188 |
188 |
189 def simpleAppStartup(argv, appinfo, mwFactory, quitOnLastWindowClosed=True, |
189 def simpleAppStartup(argv, appinfo, mwFactory, quitOnLastWindowClosed=True, |
190 app=None, raiseIt=True): |
190 app=None, raiseIt=True, installErrorHandler=False): |
191 """ |
191 """ |
192 Module function to start up an application that doesn't need a specialized start up. |
192 Module function to start up an application that doesn't need a specialized start up. |
193 |
193 |
194 This function is used by all of eric5's helper programs. |
194 This function is used by all of eric5's helper programs. |
195 |
195 |
203 </dl> |
203 </dl> |
204 @keyparam quitOnLastWindowClosed flag indicating to quit the application, |
204 @keyparam quitOnLastWindowClosed flag indicating to quit the application, |
205 if the last window was closed (boolean) |
205 if the last window was closed (boolean) |
206 @keyparam app reference to the application object (QApplication or None) |
206 @keyparam app reference to the application object (QApplication or None) |
207 @keyparam raiseIt flag indicating to raise the generated application window (boolean) |
207 @keyparam raiseIt flag indicating to raise the generated application window (boolean) |
|
208 @keyparam installErrorHandler flag indicating to install an error |
|
209 handler dialog (boolean) |
208 """ |
210 """ |
209 handleArgs(argv, appinfo) |
211 handleArgs(argv, appinfo) |
210 if app is None: |
212 if app is None: |
211 app = E5Application(argv) |
213 app = E5Application(argv) |
212 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) |
214 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) |