101 """ |
101 """ |
102 from WizardPlugins.E5MessageBoxWizard.E5MessageBoxWizardDialog import ( |
102 from WizardPlugins.E5MessageBoxWizard.E5MessageBoxWizardDialog import ( |
103 E5MessageBoxWizardDialog |
103 E5MessageBoxWizardDialog |
104 ) |
104 ) |
105 dlg = E5MessageBoxWizardDialog(None) |
105 dlg = E5MessageBoxWizardDialog(None) |
106 if dlg.exec() == QDialog.Accepted: |
106 if dlg.exec() == QDialog.DialogCode.Accepted: |
107 line, index = editor.getCursorPosition() |
107 line, index = editor.getCursorPosition() |
108 indLevel = editor.indentation(line) // editor.indentationWidth() |
108 indLevel = editor.indentation(line) // editor.indentationWidth() |
109 if editor.indentationsUseTabs(): |
109 if editor.indentationsUseTabs(): |
110 indString = '\t' |
110 indString = '\t' |
111 else: |
111 else: |