105 Private method to display a dialog and get the code. |
105 Private method to display a dialog and get the code. |
106 |
106 |
107 @param editor reference to the current editor |
107 @param editor reference to the current editor |
108 @return the generated code (string) |
108 @return the generated code (string) |
109 """ |
109 """ |
110 from eric7.Plugins.WizardPlugins.FontDialogWizard.FontDialogWizardDialog import ( # __IGNORE_WARNING__ |
110 from eric7.Plugins.WizardPlugins.FontDialogWizard import FontDialogWizardDialog |
111 FontDialogWizardDialog, |
|
112 ) |
|
113 |
111 |
114 dlg = FontDialogWizardDialog(None) |
112 dlg = FontDialogWizardDialog.FontDialogWizardDialog(None) |
115 if dlg.exec() == QDialog.DialogCode.Accepted: |
113 if dlg.exec() == QDialog.DialogCode.Accepted: |
116 line, index = editor.getCursorPosition() |
114 line, index = editor.getCursorPosition() |
117 indLevel = editor.indentation(line) // editor.indentationWidth() |
115 indLevel = editor.indentation(line) // editor.indentationWidth() |
118 if editor.indentationsUseTabs(): |
116 if editor.indentationsUseTabs(): |
119 indString = "\t" |
117 indString = "\t" |