X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/blobdiff_plain/f96fb4a3b382ac97bcdfd86549f685b02ff7968a..8835f31006dd12de37f0b4bb48f999e32c8848c9:/src/app/eventutils.py diff --git a/src/app/eventutils.py b/src/app/eventutils.py index c115c28..ed03913 100755 --- a/src/app/eventutils.py +++ b/src/app/eventutils.py @@ -46,6 +46,8 @@ class _EventDispatcher : listeners = self.registry.get(event.type, []) for listener in listeners : listener(event) + def reset(self) : + self.registry = {} def __repr__(self) : out = StringIO()