eric6_trpreviewer.py

changeset 3670
f0cb7579c0b4
parent 3669
ac84ac3c0f05
child 3778
0c5bc18da740
equal deleted inserted replaced
3669:ac84ac3c0f05 3670:f0cb7579c0b4
3 3
4 # Copyright (c) 2004 - 2014 Detlev Offenbach <detlev@die-offenbachs.de> 4 # Copyright (c) 2004 - 2014 Detlev Offenbach <detlev@die-offenbachs.de>
5 # 5 #
6 6
7 """ 7 """
8 Eric5 TR Previewer. 8 Eric6 TR Previewer.
9 9
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 """
61 options = [ 61 options = [
62 ("--config=configDir", 62 ("--config=configDir",
63 "use the given directory as the one containing the config files"), 63 "use the given directory as the one containing the config files"),
64 ] 64 ]
65 appinfo = AppInfo.makeAppInfo(sys.argv, 65 appinfo = AppInfo.makeAppInfo(sys.argv,
66 "Eric5 TR Previewer", 66 "Eric6 TR Previewer",
67 "file", 67 "file",
68 "TR file previewer", 68 "TR file previewer",
69 options) 69 options)
70 70
71 app = E5Application(sys.argv) 71 app = E5Application(sys.argv)
74 if res > 0: 74 if res > 0:
75 if len(sys.argv) > 1: 75 if len(sys.argv) > 1:
76 client.processArgs(sys.argv[1:]) 76 client.processArgs(sys.argv[1:])
77 sys.exit(0) 77 sys.exit(0)
78 elif res < 0: 78 elif res < 0:
79 print("eric5_trpreviewer: {0}".format(client.errstr())) 79 print("eric6_trpreviewer: {0}".format(client.errstr()))
80 sys.exit(res) 80 sys.exit(res)
81 else: 81 else:
82 res = Startup.simpleAppStartup(sys.argv, 82 res = Startup.simpleAppStartup(sys.argv,
83 appinfo, 83 appinfo,
84 createMainWidget, 84 createMainWidget,

eric ide

mercurial