X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fdde0706735b9c687a22f7aed393174801cbf139..3db964eee299eae5c98a48753a096fe7786af29a:/lib/python/Tools/Notifications.py diff --git a/lib/python/Tools/Notifications.py b/lib/python/Tools/Notifications.py new file mode 100644 index 00000000..b547639b --- /dev/null +++ b/lib/python/Tools/Notifications.py @@ -0,0 +1,13 @@ + +notifications = [ ] + +notificationAdded = [ ] + +def AddNotification(screen, *args): + AddNotificationWithCallback(None, screen, *args) + +def AddNotificationWithCallback(fnc, screen, *args): + notifications.append((fnc, screen) + args) + for x in notificationAdded: + x() +