aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Tools')
-rw-r--r--lib/python/Tools/Notifications.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/python/Tools/Notifications.py b/lib/python/Tools/Notifications.py
index b547639b..3cb107cc 100644
--- a/lib/python/Tools/Notifications.py
+++ b/lib/python/Tools/Notifications.py
@@ -3,11 +3,10 @@ notifications = [ ]
notificationAdded = [ ]
-def AddNotification(screen, *args):
- AddNotificationWithCallback(None, screen, *args)
+def AddNotification(screen, *args, **kwargs):
+ AddNotificationWithCallback(None, screen, *args, **kwargs)
-def AddNotificationWithCallback(fnc, screen, *args):
- notifications.append((fnc, screen) + args)
+def AddNotificationWithCallback(fnc, screen, *args, **kwargs):
+ notifications.append((fnc, screen, args, kwargs))
for x in notificationAdded:
x()
-