aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Tools/Notifications.py
blob: 3cb107cc4dc58575bac5cab5d1bc8bb4ed6339d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

notifications = [ ]

notificationAdded = [ ]

def AddNotification(screen, *args, **kwargs):
	AddNotificationWithCallback(None, screen, *args, **kwargs)

def AddNotificationWithCallback(fnc, screen, *args, **kwargs):
	notifications.append((fnc, screen, args, kwargs))
	for x in notificationAdded:
		x()