eric5_qregularexpression.py

changeset 2992
dbdf27746da5
parent 2965
d133c7edd88a
child 3034
7ce719013078
child 3057
10516539f238
equal deleted inserted replaced
2991:226481ff40d1 2992:dbdf27746da5
6 6
7 """ 7 """
8 Eric5 QRegularExpression. 8 Eric5 QRegularExpression.
9 9
10 This is the main Python script that performs the necessary initialization 10 This is the main Python script that performs the necessary initialization
11 of the QRegularExpression wizard module and starts the Qt event loop. This is a standalone 11 of the QRegularExpression wizard module and starts the Qt event loop. This is
12 version of the integrated QRegularExpression wizard. 12 a standalone version of the integrated QRegularExpression wizard.
13 """ 13 """
14 14
15 import sys 15 import sys
16 16
17 for arg in sys.argv: 17 for arg in sys.argv:
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

eric ide

mercurial