diff -r ea11a3948f40 -r b422b4e77d19 eric7/Preferences/ConfigurationPages/EditorPropertiesPage.py --- a/eric7/Preferences/ConfigurationPages/EditorPropertiesPage.py Mon May 17 19:58:15 2021 +0200 +++ b/eric7/Preferences/ConfigurationPages/EditorPropertiesPage.py Tue May 18 18:19:47 2021 +0200 @@ -7,6 +7,8 @@ Module implementing the Editor Properties configuration page. """ +from PyQt6.Qsci import QsciLexerPython + from .ConfigurationPageBase import ConfigurationPageBase from .Ui_EditorPropertiesPage import Ui_EditorPropertiesPage @@ -179,7 +181,7 @@ self.tr("Tabs"), ]) self.pythonBadIndentationComboBox.setCurrentIndex( - Preferences.getEditor("PythonBadIndentation")) + Preferences.getEditor("PythonBadIndentation").value) self.foldPythonCommentCheckBox.setChecked( Preferences.getEditor("PythonFoldComment")) self.foldPythonStringCheckBox.setChecked( @@ -448,7 +450,8 @@ self.foldPythonStringCheckBox.isChecked()) Preferences.setEditor( "PythonBadIndentation", - self.pythonBadIndentationComboBox.currentIndex()) + QsciLexerPython.IndentationWarning( + self.pythonBadIndentationComboBox.currentIndex())) Preferences.setEditor( "PythonAutoIndent", self.pythonAutoindentCheckBox.isChecked())