1 2 3 4 5 6 7 8 9 10 11 12 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()