diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2005-11-30 00:16:24 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2005-11-30 00:16:24 +0000 |
| commit | 3db964eee299eae5c98a48753a096fe7786af29a (patch) | |
| tree | 94c6a909b1365428c2e2ea012a852cf4d1631f6b /lib/python/Tools/Notifications.py | |
| parent | fdde0706735b9c687a22f7aed393174801cbf139 (diff) | |
| download | enigma2-3db964eee299eae5c98a48753a096fe7786af29a.tar.gz enigma2-3db964eee299eae5c98a48753a096fe7786af29a.zip | |
add notifications
Diffstat (limited to 'lib/python/Tools/Notifications.py')
| -rw-r--r-- | lib/python/Tools/Notifications.py | 13 |
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() + |
