Correction d'une faute d'orthographe
[memoirecycle.git] / notif.py
blob387cc769968f404f06e43803dd0b80c21ea1eee0
1 class Notifier(object):
2 """Give notification"""
3 def __init__(self):
4 self.__notifyList = set()
6 def addNotif(self,x):
7 self.__notifyList.add(x)
9 def removeNotif(self,x):
10 self.__notifyList.remove(x)
12 def doNotify(self):
13 tempNotifyList = list(self.__notifyList)
14 for x in tempNotifyList:
15 x.OnNotif()
18 class Notifiable(object):
19 """Receive notification"""
20 def __init__(self):
21 pass
23 def OnNotif(self):
24 pass