113 """ |
113 """ |
114 from eric7.Plugins.WizardPlugins.PyRegExpWizard.PyRegExpWizardDialog import ( |
114 from eric7.Plugins.WizardPlugins.PyRegExpWizard.PyRegExpWizardDialog import ( |
115 PyRegExpWizardDialog, |
115 PyRegExpWizardDialog, |
116 ) |
116 ) |
117 |
117 |
118 dlg = PyRegExpWizardDialog(None, True) |
118 dlg = PyRegExpWizardDialog(parent=self.__ui, fromEric=True) |
119 if dlg.exec() == QDialog.DialogCode.Accepted: |
119 if dlg.exec() == QDialog.DialogCode.Accepted: |
120 line, index = editor.getCursorPosition() |
120 line, index = editor.getCursorPosition() |
121 indLevel = editor.indentation(line) // editor.indentationWidth() |
121 indLevel = editor.indentation(line) // editor.indentationWidth() |
122 if editor.indentationsUseTabs(): |
122 if editor.indentationsUseTabs(): |
123 indString = "\t" |
123 indString = "\t" |