diff -r a70ebfad3d0e -r 44e15eda6506 eric6/WebBrowser/WebBrowserWindow.py --- a/eric6/WebBrowser/WebBrowserWindow.py Tue Jan 05 15:14:40 2021 +0100 +++ b/eric6/WebBrowser/WebBrowserWindow.py Tue Jan 05 18:28:31 2021 +0100 @@ -47,6 +47,7 @@ import UI.PixmapCache import UI.Config from UI.Info import Version +from UI.NotificationWidget import NotificationTypes from .Tools import Scripts, WebBrowserTools, WebIconProvider @@ -4718,7 +4719,8 @@ ########################################## @classmethod - def showNotification(cls, icon, heading, text, timeout=None): + def showNotification(cls, icon, heading, text, + kind=NotificationTypes.Information, timeout=None): """ Class method to show a desktop notification. @@ -4728,6 +4730,8 @@ @type str @param text text of the notification @type str + @param kind kind of notification to be shown + @type NotificationTypes @param timeout time in seconds the notification should be shown (None = use configured timeout, 0 = indefinitely) @type int @@ -4739,7 +4743,7 @@ if timeout is None: timeout = Preferences.getUI("NotificationTimeout") cls._notification.showNotification( - icon, heading, text, timeout=timeout) + icon, heading, text, kind=kind, timeout=timeout) ###################################### ## Support for global status bar below