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