moving the list generation to a seperate method
[enigma2.git] / lib / python / Tools / Notifications.py
1
2 notifications = [ ]
3
4 notificationAdded = [ ]
5
6 def AddNotification(screen, *args):
7         AddNotificationWithCallback(None, screen, *args)
8
9 def AddNotificationWithCallback(fnc, screen, *args):
10         notifications.append((fnc, screen) + args)
11         for x in notificationAdded:
12                 x()
13