32 Function to create the main widget. |
32 Function to create the main widget. |
33 |
33 |
34 @param argv list of commandline parameters (list of strings) |
34 @param argv list of commandline parameters (list of strings) |
35 @return reference to the main widget (QWidget) |
35 @return reference to the main widget (QWidget) |
36 """ |
36 """ |
37 from Plugins.WizardPlugins.QRegularExpressionWizard.QRegularExpressionWizardDialog \ |
37 from Plugins.WizardPlugins.QRegularExpressionWizard\ |
38 import QRegularExpressionWizardWindow |
38 .QRegularExpressionWizardDialog import QRegularExpressionWizardWindow |
39 return QRegularExpressionWizardWindow() |
39 return QRegularExpressionWizardWindow() |
40 |
40 |
41 |
41 |
42 def main(): |
42 def main(): |
43 """ |
43 """ |
45 """ |
45 """ |
46 options = [\ |
46 options = [\ |
47 ("--config=configDir", |
47 ("--config=configDir", |
48 "use the given directory as the one containing the config files"), |
48 "use the given directory as the one containing the config files"), |
49 ] |
49 ] |
50 appinfo = AppInfo.makeAppInfo(sys.argv, |
50 appinfo = AppInfo.makeAppInfo( |
51 "Eric5 QRegularExpression", |
51 sys.argv, |
52 "", |
52 "Eric5 QRegularExpression", |
53 "Regexp editor for Qt's QRegularExpression class", |
53 "", |
54 options) |
54 "Regexp editor for Qt's QRegularExpression class", |
|
55 options) |
55 res = Startup.simpleAppStartup(sys.argv, |
56 res = Startup.simpleAppStartup(sys.argv, |
56 appinfo, |
57 appinfo, |
57 createMainWidget) |
58 createMainWidget) |
58 sys.exit(res) |
59 sys.exit(res) |
59 |
60 |