add KEY_TEXT
[openblackhole/openblackhole-enigma2.git] / lib / python / Tools / Notifications.py
1
2 notifications = [ ]
3
4 notificationAdded = [ ]
5
6 def AddNotification(screen, *args, **kwargs):
7         AddNotificationWithCallback(None, screen, *args, **kwargs)
8
9 def AddNotificationWithCallback(fnc, screen, *args, **kwargs):
10         notifications.append((fnc, screen, args, kwargs))
11         for x in notificationAdded:
12                 x()