115 """ |
115 """ |
116 from WizardPlugins.SetupWizard.SetupWizardDialog import ( |
116 from WizardPlugins.SetupWizard.SetupWizardDialog import ( |
117 SetupWizardDialog |
117 SetupWizardDialog |
118 ) |
118 ) |
119 dlg = SetupWizardDialog(None) |
119 dlg = SetupWizardDialog(None) |
120 if dlg.exec() == QDialog.Accepted: |
120 if dlg.exec() == QDialog.DialogCode.Accepted: |
121 line, index = editor.getCursorPosition() |
121 line, index = editor.getCursorPosition() |
122 indLevel = editor.indentation(line) // editor.indentationWidth() |
122 indLevel = editor.indentation(line) // editor.indentationWidth() |
123 if editor.indentationsUseTabs(): |
123 if editor.indentationsUseTabs(): |
124 indString = '\t' |
124 indString = '\t' |
125 else: |
125 else: |