SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py

branch
eric7
changeset 56
2ca258eb5859
parent 55
ccddc623f3c1
child 58
b096205d8358
diff -r ccddc623f3c1 -r 2ca258eb5859 SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py
--- a/SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py	Wed Sep 21 10:48:59 2022 +0200
+++ b/SelectionEncloser/ConfigurationPage/SelectionEncloserPage.py	Mon Oct 24 16:08:20 2022 +0200
@@ -12,12 +12,15 @@
 from PyQt6.QtCore import pyqtSlot, Qt
 from PyQt6.QtWidgets import QTreeWidgetItem, QInputDialog, QLineEdit, QDialog
 
-from EricWidgets.EricApplication import ericApp
+from eric7.EricWidgets.EricApplication import ericApp
 
-from Preferences.ConfigurationPages.ConfigurationPageBase import ConfigurationPageBase
+from eric7.Preferences.ConfigurationPages.ConfigurationPageBase import ConfigurationPageBase
 from .Ui_SelectionEncloserPage import Ui_SelectionEncloserPage
 
-import UI.PixmapCache
+try:
+    from eric7.EricGui import EricPixmapCache
+except ImportError:
+    from UI import PixmapCache as EricPixmapCache
 
 
 class SelectionEncloserPage(ConfigurationPageBase, Ui_SelectionEncloserPage):
@@ -40,25 +43,25 @@
         iconSuffix = "dark" if usesDarkPalette else "light"
 
         self.editButton.setIcon(
-            UI.PixmapCache.getIcon(
+            EricPixmapCache.getIcon(
                 os.path.join(
                     "SelectionEncloser", "icons", "edit-{0}".format(iconSuffix)
                 )
             )
         )
-        self.addButton.setIcon(UI.PixmapCache.getIcon("plus"))
-        self.deleteButton.setIcon(UI.PixmapCache.getIcon("minus"))
-        self.upButton.setIcon(UI.PixmapCache.getIcon("1uparrow"))
-        self.downButton.setIcon(UI.PixmapCache.getIcon("1downarrow"))
+        self.addButton.setIcon(EricPixmapCache.getIcon("plus"))
+        self.deleteButton.setIcon(EricPixmapCache.getIcon("minus"))
+        self.upButton.setIcon(EricPixmapCache.getIcon("1uparrow"))
+        self.downButton.setIcon(EricPixmapCache.getIcon("1downarrow"))
         self.addMenuButton.setIcon(
-            UI.PixmapCache.getIcon(
+            EricPixmapCache.getIcon(
                 os.path.join(
                     "SelectionEncloser", "icons", "topAdd-{0}".format(iconSuffix)
                 )
             )
         )
         self.addSeparatorButton.setIcon(
-            UI.PixmapCache.getIcon(
+            EricPixmapCache.getIcon(
                 os.path.join(
                     "SelectionEncloser", "icons", "separatorAdd-{0}".format(iconSuffix)
                 )

eric ide

mercurial