src/eric7/eric7_trpreviewer.py

branch
eric7
changeset 9473
3f23dbf37dbe
parent 9413
80c06d472826
child 9482
a2bc06a54d9d
equal deleted inserted replaced
9472:5798ee4a8807 9473:3f23dbf37dbe
10 This is the main Python script that performs the necessary initialization 10 This is the main Python script that performs the necessary initialization
11 of the tr previewer and starts the Qt event loop. This is a standalone version 11 of the tr previewer and starts the Qt event loop. This is a standalone version
12 of the integrated tr previewer. 12 of the integrated tr previewer.
13 """ 13 """
14 14
15 import os
15 import sys 16 import sys
16 import os
17 17
18 for arg in sys.argv[:]: 18 for arg in sys.argv[:]:
19 if arg.startswith("--config="): 19 if arg.startswith("--config="):
20 from eric7 import Globals 20 from eric7 import Globals
21 21
32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir 32 QSettings.Format.IniFormat, QSettings.Scope.UserScope, settingsDir
33 ) 33 )
34 sys.argv.remove(arg) 34 sys.argv.remove(arg)
35 35
36 from eric7.EricWidgets.EricApplication import EricApplication 36 from eric7.EricWidgets.EricApplication import EricApplication
37 37 from eric7.Globals import AppInfo
38 from eric7.Toolbox import Startup
38 from eric7.Tools.TRSingleApplication import TRSingleApplicationClient 39 from eric7.Tools.TRSingleApplication import TRSingleApplicationClient
39 from eric7.Globals import AppInfo
40
41 from eric7.Toolbox import Startup
42 40
43 app = None 41 app = None
44 42
45 43
46 def createMainWidget(argv): 44 def createMainWidget(argv):

eric ide

mercurial