Utilities/Startup.py

changeset 55
b5c84934de9c
parent 15
f6ccc31d6e72
child 97
c4086afea02b
equal deleted inserted replaced
54:31463df17fd5 55:b5c84934de9c
12 12
13 from PyQt4.QtCore import QTranslator, QTextCodec, QLocale, QDir, SIGNAL, SLOT, \ 13 from PyQt4.QtCore import QTranslator, QTextCodec, QLocale, QDir, SIGNAL, SLOT, \
14 QLibraryInfo 14 QLibraryInfo
15 from PyQt4.QtGui import QApplication 15 from PyQt4.QtGui import QApplication
16 16
17 from E4Gui.E4Application import E4Application 17 from E5Gui.E5Application import E5Application
18 18
19 import Preferences 19 import Preferences
20 import Utilities 20 import Utilities
21 from UI.Info import Version 21 from UI.Info import Version
22 22
196 </dl> 196 </dl>
197 @keyparam quitOnLastWindowClosed flag indicating to quit the application, 197 @keyparam quitOnLastWindowClosed flag indicating to quit the application,
198 if the last window was closed (boolean) 198 if the last window was closed (boolean)
199 """ 199 """
200 ddindex = handleArgs(argv, appinfo) 200 ddindex = handleArgs(argv, appinfo)
201 app = E4Application(argv) 201 app = E5Application(argv)
202 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) 202 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed)
203 try: 203 try:
204 sys.setappdefaultencoding(Preferences.getSystem("StringEncoding")) 204 sys.setappdefaultencoding(Preferences.getSystem("StringEncoding"))
205 except AttributeError: 205 except AttributeError:
206 pass 206 pass

eric ide

mercurial