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