98 @return the generated code (string) |
98 @return the generated code (string) |
99 """ |
99 """ |
100 dlg = MessageBoxWizardDialog(None) |
100 dlg = MessageBoxWizardDialog(None) |
101 if dlg.exec_() == QDialog.Accepted: |
101 if dlg.exec_() == QDialog.Accepted: |
102 line, index = editor.getCursorPosition() |
102 line, index = editor.getCursorPosition() |
103 indLevel = editor.indentation(line)/editor.indentationWidth() |
103 indLevel = editor.indentation(line) // editor.indentationWidth() |
104 if editor.indentationsUseTabs(): |
104 if editor.indentationsUseTabs(): |
105 indString = '\t' |
105 indString = '\t' |
106 else: |
106 else: |
107 indString = editor.indentationWidth() * ' ' |
107 indString = editor.indentationWidth() * ' ' |
108 return (dlg.getCode(indLevel, indString), True) |
108 return (dlg.getCode(indLevel, indString), True) |