--- a/src/eric7/Project/LexerAssociationDialog.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/Project/LexerAssociationDialog.py Tue Oct 18 16:06:21 2022 +0200 @@ -14,9 +14,9 @@ from .Ui_LexerAssociationDialog import Ui_LexerAssociationDialog -import QScintilla.Lexers +from eric7.QScintilla import Lexers -import UI.PixmapCache +from eric7.EricGui import EricPixmapCache class LexerAssociationDialog(QDialog, Ui_LexerAssociationDialog): @@ -49,11 +49,9 @@ self.extras = ["-----------", self.tr("Alternative")] self.editorLexerCombo.addItem("") - self.editorLexerCombo.addItem(UI.PixmapCache.getIcon("fileText"), "Text") - for lang in sorted(QScintilla.Lexers.getSupportedLanguages().keys()): - self.editorLexerCombo.addItem( - QScintilla.Lexers.getLanguageIcon(lang, False), lang - ) + self.editorLexerCombo.addItem(EricPixmapCache.getIcon("fileText"), "Text") + for lang in sorted(Lexers.getSupportedLanguages().keys()): + self.editorLexerCombo.addItem(Lexers.getLanguageIcon(lang, False), lang) self.editorLexerCombo.addItems(self.extras) from pygments.lexers import get_all_lexers