print "open",n
cb = n[0]
if cb is not None:
- self.session.openWithCallback(cb, *n[1:])
+ self.session.openWithCallback(cb, n[1], *n[2], **n[3])
else:
- self.session.open(*n[1:])
+ self.session.open(n[1], *n[2], **n[3])
class InfoBarServiceNotifications:
def __init__(self):
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()
-