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.PluginUninstallDialog import PluginUninstallWindow |
33 from PluginManager.PluginUninstallDialog import PluginUninstallWindow |
33 return PluginUninstallWindow() |
34 return PluginUninstallWindow() |
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 ] |
44 ] |
43 appinfo = Startup.makeAppInfo(sys.argv, |
45 appinfo = Startup.makeAppInfo(sys.argv, |
44 "Eric5 Plugin Uninstaller", |
46 "Eric5 Plugin Uninstaller", |
45 "", |
47 "", |
46 "Plugin uninstallation utility for eric5", |
48 "Plugin uninstallation utility for eric5", |