diff options
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() + |
