diff -r 45e7bb09c120 -r 80c06d472826 src/eric7/Snapshot/SnapWidget.py --- a/src/eric7/Snapshot/SnapWidget.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/Snapshot/SnapWidget.py Tue Oct 18 16:06:21 2022 +0200 @@ -28,13 +28,12 @@ from PyQt6.QtGui import QImageWriter, QPixmap, QDrag, QKeySequence, QShortcut from PyQt6.QtWidgets import QWidget, QApplication -from EricWidgets import EricFileDialog, EricMessageBox +from eric7.EricWidgets import EricFileDialog, EricMessageBox from .Ui_SnapWidget import Ui_SnapWidget -import UI.PixmapCache -import Preferences -import Globals +from eric7.EricGui import EricPixmapCache +from eric7 import Globals, Preferences from .SnapshotModes import SnapshotModes @@ -53,11 +52,11 @@ super().__init__(parent) self.setupUi(self) - self.saveButton.setIcon(UI.PixmapCache.getIcon("fileSaveAs")) - self.takeButton.setIcon(UI.PixmapCache.getIcon("cameraPhoto")) - self.copyButton.setIcon(UI.PixmapCache.getIcon("editCopy")) - self.copyPreviewButton.setIcon(UI.PixmapCache.getIcon("editCopy")) - self.setWindowIcon(UI.PixmapCache.getIcon("ericSnap")) + self.saveButton.setIcon(EricPixmapCache.getIcon("fileSaveAs")) + self.takeButton.setIcon(EricPixmapCache.getIcon("cameraPhoto")) + self.copyButton.setIcon(EricPixmapCache.getIcon("editCopy")) + self.copyPreviewButton.setIcon(EricPixmapCache.getIcon("editCopy")) + self.setWindowIcon(EricPixmapCache.getIcon("ericSnap")) if Globals.isWaylandSession(): from .SnapshotWaylandGrabber import SnapshotWaylandGrabber