77 sys.path.insert(2, os.path.join(os.path.dirname(__file__), |
77 sys.path.insert(2, os.path.join(os.path.dirname(__file__), |
78 "ThirdParty", "Jasy")) |
78 "ThirdParty", "Jasy")) |
79 sys.path.insert(2, os.path.join(os.path.dirname(__file__), |
79 sys.path.insert(2, os.path.join(os.path.dirname(__file__), |
80 "DebugClients", "Python")) |
80 "DebugClients", "Python")) |
81 |
81 |
82 from E5Gui.EricApplication import EricApplication |
82 from EricWidgets.EricApplication import EricApplication |
83 |
83 |
84 |
84 |
85 def handleSingleApplication(ddindex): |
85 def handleSingleApplication(ddindex): |
86 """ |
86 """ |
87 Global function to handle the single application mode. |
87 Global function to handle the single application mode. |
88 |
88 |
89 @param ddindex index of a '--' option in the options list |
89 @param ddindex index of a '--' option in the options list |
90 """ |
90 """ |
91 from E5Gui.EricSingleApplication import EricSingleApplicationClient |
91 from EricWidgets.EricSingleApplication import EricSingleApplicationClient |
92 |
92 |
93 client = EricSingleApplicationClient() |
93 client = EricSingleApplicationClient() |
94 res = client.connect() |
94 res = client.connect() |
95 if res > 0: |
95 if res > 0: |
96 if ( |
96 if ( |
399 mainWindow.show() |
399 mainWindow.show() |
400 |
400 |
401 QTimer.singleShot(0, uiStartUp) |
401 QTimer.singleShot(0, uiStartUp) |
402 |
402 |
403 # generate a graphical error handler |
403 # generate a graphical error handler |
404 from E5Gui import EricErrorMessage |
404 from EricWidgets import EricErrorMessage |
405 eMsg = EricErrorMessage.qtHandler() |
405 eMsg = EricErrorMessage.qtHandler() |
406 eMsg.setMinimumSize(600, 400) |
406 eMsg.setMinimumSize(600, 400) |
407 |
407 |
408 # start the event loop |
408 # start the event loop |
409 inMainLoop = True |
409 inMainLoop = True |