diff -r 45e7bb09c120 -r 80c06d472826 src/eric7/Preferences/PreferencesLexer.py --- a/src/eric7/Preferences/PreferencesLexer.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/Preferences/PreferencesLexer.py Tue Oct 18 16:06:21 2022 +0200 @@ -10,8 +10,7 @@ from PyQt6.QtCore import QCoreApplication, QObject from PyQt6.Qsci import QsciScintillaBase -import Preferences -import Globals +from eric7 import Globals, Preferences class PreferencesLexerError(Exception): @@ -82,7 +81,7 @@ """ super().__init__(parent) - # These default font families are taken from QScintilla + # These default font families are taken from eric7.QScintilla if Globals.isWindowsPlatform(): self.__defaultFontFamily = "Courier New" elif Globals.isMacPlatform(): @@ -91,9 +90,9 @@ self.__defaultFontFamily = "Bitstream Vera Sans Mono" # instantiate a lexer object for the given language - import QScintilla.Lexers + from eric7.QScintilla import Lexers - self.__lex = QScintilla.Lexers.getLexer(language) + self.__lex = Lexers.getLexer(language) if self.__lex is None: raise PreferencesLexerLanguageError(language)