src/eric7/Plugins/PluginWizardPyRegExp.py

branch
eric7
changeset 11006
a671918232f3
parent 10730
454f6ff4e1cd
child 11090
f5f5f5803935
equal deleted inserted replaced
11005:b918c6c2736b 11006:a671918232f3
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"

eric ide

mercurial