aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools/Notifications.py
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2005-11-30 00:16:24 +0000
committerFelix Domke <tmbinc@elitedvb.net>2005-11-30 00:16:24 +0000
commit3db964eee299eae5c98a48753a096fe7786af29a (patch)
tree94c6a909b1365428c2e2ea012a852cf4d1631f6b /lib/python/Tools/Notifications.py
parentfdde0706735b9c687a22f7aed393174801cbf139 (diff)
downloadenigma2-3db964eee299eae5c98a48753a096fe7786af29a.tar.gz
enigma2-3db964eee299eae5c98a48753a096fe7786af29a.zip
add notifications
Diffstat (limited to 'lib/python/Tools/Notifications.py')
-rw-r--r--lib/python/Tools/Notifications.py13
1 files changed, 13 insertions, 0 deletions
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()
+