--- a/src/eric7/UI/NotificationWidget.py Tue Oct 18 16:05:20 2022 +0200 +++ b/src/eric7/UI/NotificationWidget.py Tue Oct 18 16:06:21 2022 +0200 @@ -15,9 +15,8 @@ from .Ui_NotificationFrame import Ui_NotificationFrame -import Globals -import Preferences -import UI.PixmapCache +from eric7 import Globals, Preferences +from eric7.EricGui import EricPixmapCache class NotificationTypes(enum.Enum): @@ -86,13 +85,13 @@ @rtype QPixmap """ if kind == NotificationTypes.CRITICAL: - return UI.PixmapCache.getPixmap("notificationCritical48") + return EricPixmapCache.getPixmap("notificationCritical48") elif kind == NotificationTypes.WARNING: # __NO-TASK__ - return UI.PixmapCache.getPixmap("notificationWarning48") + return EricPixmapCache.getPixmap("notificationWarning48") elif kind == NotificationTypes.INFORMATION: - return UI.PixmapCache.getPixmap("notificationInformation48") + return EricPixmapCache.getPixmap("notificationInformation48") else: - return UI.PixmapCache.getPixmap("notification48") + return EricPixmapCache.getPixmap("notification48") @classmethod def getStyleSheet(cls, kind):