113 """ |
113 """ |
114 from eric7.Plugins.WizardPlugins.ColorDialogWizard import ( |
114 from eric7.Plugins.WizardPlugins.ColorDialogWizard import ( |
115 ColorDialogWizardDialog, |
115 ColorDialogWizardDialog, |
116 ) |
116 ) |
117 |
117 |
118 dlg = ColorDialogWizardDialog.ColorDialogWizardDialog(None) |
118 dlg = ColorDialogWizardDialog.ColorDialogWizardDialog(parent=self.__ui) |
119 if dlg.exec() == QDialog.DialogCode.Accepted: |
119 if dlg.exec() == QDialog.DialogCode.Accepted: |
120 line, index = editor.getCursorPosition() |
120 line, index = editor.getCursorPosition() |
121 indLevel = editor.indentation(line) // editor.indentationWidth() |
121 indLevel = editor.indentation(line) // editor.indentationWidth() |
122 if editor.indentationsUseTabs(): |
122 if editor.indentationsUseTabs(): |
123 indString = "\t" |
123 indString = "\t" |