8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtCore import QObject |
10 from PyQt6.QtCore import QObject |
11 from PyQt6.QtWidgets import QDialog |
11 from PyQt6.QtWidgets import QDialog |
12 |
12 |
13 from EricWidgets.EricApplication import ericApp |
13 from eric7.EricWidgets.EricApplication import ericApp |
14 from EricGui.EricAction import EricAction |
14 from eric7.EricGui.EricAction import EricAction |
15 from EricWidgets import EricMessageBox |
15 from eric7.EricWidgets import EricMessageBox |
16 |
16 |
17 import UI.Info |
17 from eric7.UI import Info |
18 |
18 |
19 # Start-Of-Header |
19 # Start-Of-Header |
20 name = "Python re Wizard Plugin" |
20 name = "Python re Wizard Plugin" |
21 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
21 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
22 autoactivate = True |
22 autoactivate = True |
23 deactivateable = True |
23 deactivateable = True |
24 version = UI.Info.VersionOnly |
24 version = Info.VersionOnly |
25 className = "PyRegExpWizard" |
25 className = "PyRegExpWizard" |
26 packageName = "__core__" |
26 packageName = "__core__" |
27 shortDescription = "Show the Python re wizard." |
27 shortDescription = "Show the Python re wizard." |
28 longDescription = """This plugin shows the Python re wizard.""" |
28 longDescription = """This plugin shows the Python re wizard.""" |
29 pyqtApi = 2 |
29 pyqtApi = 2 |
104 Private method to display a dialog and get the code. |
104 Private method to display a dialog and get the code. |
105 |
105 |
106 @param editor reference to the current editor |
106 @param editor reference to the current editor |
107 @return the generated code (string) |
107 @return the generated code (string) |
108 """ |
108 """ |
109 from WizardPlugins.PyRegExpWizard.PyRegExpWizardDialog import ( |
109 from eric7.Plugins.WizardPlugins.PyRegExpWizard.PyRegExpWizardDialog import ( |
110 PyRegExpWizardDialog, |
110 PyRegExpWizardDialog, |
111 ) |
111 ) |
112 |
112 |
113 dlg = PyRegExpWizardDialog(None, True) |
113 dlg = PyRegExpWizardDialog(None, True) |
114 if dlg.exec() == QDialog.DialogCode.Accepted: |
114 if dlg.exec() == QDialog.DialogCode.Accepted: |