eric5_diff.py

changeset 945
8cd4d08fa9f6
parent 896
f855351d5e98
child 1509
c0b5e693b0eb
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
6 6
7 """ 7 """
8 Eric5 Diff 8 Eric5 Diff
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 Diff module and starts the Qt event loop. This is a standalone 11 of the Diff module and starts the Qt event loop. This is a standalone
12 version of the integrated Diff module. 12 version of the integrated Diff module.
13 """ 13 """
14 14
15 import sys 15 import sys
16 16
22 sys.argv.remove(arg) 22 sys.argv.remove(arg)
23 break 23 break
24 24
25 from Utilities import Startup 25 from Utilities import Startup
26 26
27
27 def createMainWidget(argv): 28 def createMainWidget(argv):
28 """ 29 """
29 Function to create the main widget. 30 Function to create the main widget.
30 31
31 @param argv list of commandline parameters (list of strings) 32 @param argv list of commandline parameters (list of strings)
32 @return reference to the main widget (QWidget) 33 @return reference to the main widget (QWidget)
33 """ 34 """
34 from UI.DiffDialog import DiffWindow 35 from UI.DiffDialog import DiffWindow
35 return DiffWindow() 36 return DiffWindow()
36 37
38
37 def main(): 39 def main():
38 """ 40 """
39 Main entry point into the application. 41 Main entry point into the application.
40 """ 42 """
41 options = [\ 43 options = [\
42 ("--config=configDir", 44 ("--config=configDir",
43 "use the given directory as the one containing the config files"), 45 "use the given directory as the one containing the config files"),
44 ] 46 ]
45 appinfo = Startup.makeAppInfo(sys.argv, 47 appinfo = Startup.makeAppInfo(sys.argv,
46 "Eric5 Diff", 48 "Eric5 Diff",
47 "", 49 "",
48 "Simple graphical diff tool", 50 "Simple graphical diff tool",

eric ide

mercurial