eric6/UI/UserInterface.py

changeset 7952
1849f61cf2b6
parent 7948
6cbd0c086887
child 7955
567f2ec958c3
--- a/eric6/UI/UserInterface.py	Mon Jan 04 15:51:18 2021 +0100
+++ b/eric6/UI/UserInterface.py	Mon Jan 04 15:59:22 2021 +0100
@@ -7435,14 +7435,10 @@
             if self.__notification is None:
                 from .NotificationWidget import NotificationWidget
                 self.__notification = NotificationWidget(parent=self)
-            self.__notification.setPixmap(icon)
-            self.__notification.setHeading(heading)
-            self.__notification.setText(text)
             if timeout is None:
                 timeout = Preferences.getUI("NotificationTimeout")
-            self.__notification.setTimeout(timeout)
-            self.__notification.move(Preferences.getUI("NotificationPosition"))
-            self.__notification.show()
+            self.__notification.showNotification(icon, heading, text,
+                                                 timeout=timeout)
     
     def notificationsEnabled(self):
         """

eric ide

mercurial