src/eric7/Preferences/ConfigurationPages/EditorHighlightersPage.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
--- a/src/eric7/Preferences/ConfigurationPages/EditorHighlightersPage.py	Tue Oct 18 16:05:20 2022 +0200
+++ b/src/eric7/Preferences/ConfigurationPages/EditorHighlightersPage.py	Tue Oct 18 16:06:21 2022 +0200
@@ -17,8 +17,8 @@
 from .ConfigurationPageBase import ConfigurationPageBase
 from .Ui_EditorHighlightersPage import Ui_EditorHighlightersPage
 
-import Preferences
-import UI.PixmapCache
+from eric7 import Preferences
+from eric7.EricGui import EricPixmapCache
 
 
 class EditorHighlightersPage(ConfigurationPageBase, Ui_EditorHighlightersPage):
@@ -48,15 +48,13 @@
         except AttributeError:
             self.extsep = "."
 
-        import QScintilla.Lexers
+        from eric7.QScintilla import Lexers
 
         self.extras = ["-----------", self.tr("Alternative")]
         self.editorLexerCombo.addItem("")
-        self.editorLexerCombo.addItem(UI.PixmapCache.getIcon("fileText"), "Text")
+        self.editorLexerCombo.addItem(EricPixmapCache.getIcon("fileText"), "Text")
         for lang in sorted(lexers.keys()):
-            self.editorLexerCombo.addItem(
-                QScintilla.Lexers.getLanguageIcon(lang, False), lang
-            )
+            self.editorLexerCombo.addItem(Lexers.getLanguageIcon(lang, False), lang)
         self.editorLexerCombo.addItems(self.extras)
 
         pygmentsLexers = [""] + sorted(lex[0] for lex in get_all_lexers())

eric ide

mercurial