eric6/Preferences/ConfigurationPages/NotificationsPage.py

changeset 8265
0090cfa83159
parent 8218
7c09585bd960
child 8273
698ae46f40a4
--- a/eric6/Preferences/ConfigurationPages/NotificationsPage.py	Mon Apr 26 17:33:08 2021 +0200
+++ b/eric6/Preferences/ConfigurationPages/NotificationsPage.py	Tue Apr 27 17:25:06 2021 +0200
@@ -38,9 +38,9 @@
         self.ySpinBox.setMaximum(geom.height())
         
         self.warningIcon.setPixmap(
-            NotificationFrame.getIcon(NotificationTypes.Warning))
+            NotificationFrame.getIcon(NotificationTypes.WARNING))
         self.criticalIcon.setPixmap(
-            NotificationFrame.getIcon(NotificationTypes.Critical))
+            NotificationFrame.getIcon(NotificationTypes.CRITICAL))
         
         self.__notification = None
         self.__firstTime = True
@@ -100,7 +100,7 @@
             self.__notification = NotificationWidget(
                 parent=self, setPosition=True)
             self.__notification.showNotification(
-                NotificationFrame.getIcon(NotificationTypes.Other),
+                NotificationFrame.getIcon(NotificationTypes.OTHER),
                 self.tr("Visual Selection"),
                 self.tr("Drag the notification window to"
                         " the desired place and release the button."),

eric ide

mercurial