aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools/Notifications.py
blob: b547639beb20f7910ff3ea0a0bfc96b71a3a3b64 (plain)
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()