--- a/src/eric7/QScintilla/Lexers/__init__.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/QScintilla/Lexers/__init__.py Tue Oct 18 16:06:21 2022 +0200 @@ -9,8 +9,8 @@ from PyQt6.QtCore import QCoreApplication -import Preferences -import UI.PixmapCache +from eric7 import Preferences +from eric7.EricGui import EricPixmapCache # The lexer registry # Dictionary with the language name as key. Each entry is a list with @@ -272,9 +272,9 @@ supportedLanguages[language][2] if language in supportedLanguages else "" ) if pixmap: - return UI.PixmapCache.getPixmap(iconFileName) + return EricPixmapCache.getPixmap(iconFileName) else: - return UI.PixmapCache.getIcon(iconFileName) + return EricPixmapCache.getIcon(iconFileName) def getLexer(language, parent=None, pyname=""):