eric5_iconeditor.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 fileName = "" 40 fileName = ""
40 41
41 editor = IconEditorWindow(fileName, None) 42 editor = IconEditorWindow(fileName, None)
42 return editor 43 return editor
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 ("", "name of file to edit") 53 ("", "name of file to edit")
52 ] 54 ]
53 appinfo = Startup.makeAppInfo(sys.argv, 55 appinfo = Startup.makeAppInfo(sys.argv,
54 "Eric5 Icon Editor", 56 "Eric5 Icon Editor",
55 "", 57 "",

eric ide

mercurial