Utilities/Startup.py

changeset 107
918a6be6f051
parent 97
c4086afea02b
child 263
2b328d503567
equal deleted inserted replaced
106:94c7385cf685 107:918a6be6f051
199 if the last window was closed (boolean) 199 if the last window was closed (boolean)
200 """ 200 """
201 handleArgs(argv, appinfo) 201 handleArgs(argv, appinfo)
202 app = E5Application(argv) 202 app = E5Application(argv)
203 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed) 203 app.setQuitOnLastWindowClosed(quitOnLastWindowClosed)
204 try:
205 sys.setappdefaultencoding(Preferences.getSystem("StringEncoding"))
206 except AttributeError:
207 pass
208 204
209 initializeResourceSearchPath() 205 initializeResourceSearchPath()
210 QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) 206 QApplication.setWindowIcon(UI.PixmapCache.getIcon("eric.png"))
211 207
212 qt4TransDir = Preferences.getQt4TranslationsDir() 208 qt4TransDir = Preferences.getQt4TranslationsDir()

eric ide

mercurial