eric5_uipreviewer.py

changeset 945
8cd4d08fa9f6
parent 896
f855351d5e98
child 1509
c0b5e693b0eb
equal deleted inserted replaced
944:1b59c4ba121e 945:8cd4d08fa9f6
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)
39 fn = None 40 fn = None
40 41
41 previewer = UIPreviewer(fn, None, 'UIPreviewer') 42 previewer = UIPreviewer(fn, None, 'UIPreviewer')
42 return previewer 43 return previewer
43 44
45
44 def main(): 46 def main():
45 """ 47 """
46 Main entry point into the application. 48 Main entry point into the application.
47 """ 49 """
48 options = [\ 50 options = [\
49 ("--config=configDir", 51 ("--config=configDir",
50 "use the given directory as the one containing the config files"), 52 "use the given directory as the one containing the config files"),
51 ] 53 ]
52 appinfo = Startup.makeAppInfo(sys.argv, 54 appinfo = Startup.makeAppInfo(sys.argv,
53 "Eric5 UI Previewer", 55 "Eric5 UI Previewer",
54 "file", 56 "file",
55 "UI file previewer", 57 "UI file previewer",

eric ide

mercurial