diff -r fb0ef164f536 -r 698ae46f40a4 eric6/Preferences/ConfigurationPages/NotificationsPage.py --- a/eric6/Preferences/ConfigurationPages/NotificationsPage.py Fri Apr 02 11:59:41 2021 +0200 +++ b/eric6/Preferences/ConfigurationPages/NotificationsPage.py Sat May 01 14:27:20 2021 +0200 @@ -27,7 +27,7 @@ """ Constructor """ - super(NotificationsPage, self).__init__() + super().__init__() self.setupUi(self) self.setObjectName("NotificationsPage") @@ -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 @@ -85,7 +85,7 @@ Preferences.setUI("NotificationPosition", QPoint( self.xSpinBox.value(), self.ySpinBox.value())) - for key in self.__colors.keys(): + for key in self.__colors: Preferences.setUI(key, self.__colors[key]) @pyqtSlot(bool) @@ -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."),