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