diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-30 19:48:27 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-30 19:48:27 +0100 |
commit | 07ae3e0b09441cec7a7df8ad5a4e961aab04e5eb (patch) | |
tree | aef4b5df69f23df85f469d7a9b6cb00038cb7347 /module/interaction/EventManager.py | |
parent | show active addons (diff) | |
download | pyload-07ae3e0b09441cec7a7df8ad5a4e961aab04e5eb.tar.xz |
save and delete configs
Diffstat (limited to 'module/interaction/EventManager.py')
-rw-r--r-- | module/interaction/EventManager.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/module/interaction/EventManager.py b/module/interaction/EventManager.py index b25514b6a..7d37ca6b9 100644 --- a/module/interaction/EventManager.py +++ b/module/interaction/EventManager.py @@ -56,6 +56,12 @@ class EventManager: if event in self.events: self.events[event].remove(func) + def removeFromEvents(self, func): + """ Removes func from all known events """ + for name, events in self.events.iteritems(): + if func in events: + events.remove(func) + def dispatchEvent(self, event, *args): """dispatches event with args""" for f in self.events["event"]: |