111 @return the generated code |
111 @return the generated code |
112 @rtype str |
112 @rtype str |
113 """ |
113 """ |
114 from eric7.Plugins.WizardPlugins.FontDialogWizard import FontDialogWizardDialog |
114 from eric7.Plugins.WizardPlugins.FontDialogWizard import FontDialogWizardDialog |
115 |
115 |
116 dlg = FontDialogWizardDialog.FontDialogWizardDialog(None) |
116 dlg = FontDialogWizardDialog.FontDialogWizardDialog(parent=self.__ui) |
117 if dlg.exec() == QDialog.DialogCode.Accepted: |
117 if dlg.exec() == QDialog.DialogCode.Accepted: |
118 line, index = editor.getCursorPosition() |
118 line, index = editor.getCursorPosition() |
119 indLevel = editor.indentation(line) // editor.indentationWidth() |
119 indLevel = editor.indentation(line) // editor.indentationWidth() |
120 if editor.indentationsUseTabs(): |
120 if editor.indentationsUseTabs(): |
121 indString = "\t" |
121 indString = "\t" |