eric6/eric6_tray.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 7192
a22eee00b052
child 7229
53054eb5b15a
equal deleted inserted replaced
7197:331569d44b19 7198:684261ef2165
15 from __future__ import unicode_literals 15 from __future__ import unicode_literals
16 16
17 import sys 17 import sys
18 import os 18 import os
19 19
20 PyQt4Option = "--pyqt4" in sys.argv
21 SettingsDir = None 20 SettingsDir = None
22 21
23 sys.path.insert(1, os.path.dirname(__file__)) 22 sys.path.insert(1, os.path.dirname(__file__))
24
25 import Toolbox.PyQt4ImportHook # __IGNORE_WARNING__
26 23
27 for arg in sys.argv[:]: 24 for arg in sys.argv[:]:
28 if arg.startswith("--config="): 25 if arg.startswith("--config="):
29 import Globals 26 import Globals
30 configDir = arg.replace("--config=", "") 27 configDir = arg.replace("--config=", "")
50 47
51 @param argv list of commandline parameters (list of strings) 48 @param argv list of commandline parameters (list of strings)
52 @return reference to the main widget (QWidget) 49 @return reference to the main widget (QWidget)
53 """ 50 """
54 from Tools.TrayStarter import TrayStarter 51 from Tools.TrayStarter import TrayStarter
55 return TrayStarter(PyQt4Option, SettingsDir) 52 return TrayStarter(SettingsDir)
56 53
57 54
58 def main(): 55 def main():
59 """ 56 """
60 Main entry point into the application. 57 Main entry point into the application.

eric ide

mercurial