add notifications
[enigma2.git] / lib / python / Tools / Notifications.py
diff --git a/lib/python/Tools/Notifications.py b/lib/python/Tools/Notifications.py
new file mode 100644 (file)
index 0000000..b547639
--- /dev/null
@@ -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()
+