src/eric7/Project/LexerAssociationDialog.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
--- 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

eric ide

mercurial