20 sys.argv.remove(arg) |
20 sys.argv.remove(arg) |
21 break |
21 break |
22 |
22 |
23 from Utilities import Startup |
23 from Utilities import Startup |
24 |
24 |
|
25 |
25 def createMainWidget(argv): |
26 def createMainWidget(argv): |
26 """ |
27 """ |
27 Function to create the main widget. |
28 Function to create the main widget. |
28 |
29 |
29 @param argv list of commandline parameters (list of strings) |
30 @param argv list of commandline parameters (list of strings) |
30 @return reference to the main widget (QWidget) |
31 @return reference to the main widget (QWidget) |
31 """ |
32 """ |
32 from PluginManager.PluginInstallDialog import PluginInstallWindow |
33 from PluginManager.PluginInstallDialog import PluginInstallWindow |
33 return PluginInstallWindow(argv[1:]) |
34 return PluginInstallWindow(argv[1:]) |
34 |
35 |
|
36 |
35 def main(): |
37 def main(): |
36 """ |
38 """ |
37 Main entry point into the application. |
39 Main entry point into the application. |
38 """ |
40 """ |
39 options = [\ |
41 options = [\ |
40 ("--config=configDir", |
42 ("--config=configDir", |
41 "use the given directory as the one containing the config files"), |
43 "use the given directory as the one containing the config files"), |
42 ("", "names of plugins to install") |
44 ("", "names of plugins to install") |
43 ] |
45 ] |
44 appinfo = Startup.makeAppInfo(sys.argv, |
46 appinfo = Startup.makeAppInfo(sys.argv, |
45 "Eric5 Plugin Installer", |
47 "Eric5 Plugin Installer", |
46 "", |
48 "", |