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/Screens/InfoBarGenerics.py | |
| parent | fdde0706735b9c687a22f7aed393174801cbf139 (diff) | |
| download | enigma2-3db964eee299eae5c98a48753a096fe7786af29a.tar.gz enigma2-3db964eee299eae5c98a48753a096fe7786af29a.zip | |
add notifications
Diffstat (limited to 'lib/python/Screens/InfoBarGenerics.py')
| -rw-r--r-- | lib/python/Screens/InfoBarGenerics.py | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/python/Screens/InfoBarGenerics.py b/lib/python/Screens/InfoBarGenerics.py index 978a1134..c1842796 100644 --- a/lib/python/Screens/InfoBarGenerics.py +++ b/lib/python/Screens/InfoBarGenerics.py @@ -20,6 +20,8 @@ from Screens.Mute import Mute from Screens.Standby import Standby from Screens.EventView import EventView +from Tools import Notifications + #from enigma import eTimer, eDVBVolumecontrol, quitMainloop from enigma import * @@ -522,4 +524,24 @@ class InfoBarAdditionalInfo: self["ButtonRedText"] = Label(_("Record")) self["ButtonGreen"] = Pixmap() self["ButtonYellow"] = Pixmap() - self["ButtonBlue"] = Pixmap()
\ No newline at end of file + self["ButtonBlue"] = Pixmap() + +class InfoBarNotifications: + def __init__(self): + self.onExecBegin.append(self.checkNotifications) + Notifications.notificationAdded.append(self.checkNotificationsIfExecing) + + def checkNotificationsIfExecing(self): + if self.execing: + self.checkNotifications() + + def checkNotifications(self): + if len(Notifications.notifications): + n = Notifications.notifications[0] + Notifications.notifications = Notifications.notifications[1:] + print "open",n + cb = n[0] + if cb is not None: + self.session.openWithCallback(cb, *n[1:]) + else: + self.session.open(*n[1:]) |
