listeners = self.registry.get(event.type, {})
for listener in listeners.keys() :
listener(event)
listeners = self.registry.get(event.type, {})
for listener in listeners.keys() :
listener(event)
for k, v in dict.items() :
if isinstance(v, types.FunctionType) and hasattr(v, '__islistener__') :
listener = getattr(self, k)
for k, v in dict.items() :
if isinstance(v, types.FunctionType) and hasattr(v, '__islistener__') :
listener = getattr(self, k)
def ctor(self, *args, **kw) :
default_ctor = dict.get('__init__')
def ctor(self, *args, **kw) :
default_ctor = dict.get('__init__')