summaryrefslogtreecommitdiffstats
path: root/module/interaction/EventManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-30 19:48:27 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-30 19:48:27 +0100
commit07ae3e0b09441cec7a7df8ad5a4e961aab04e5eb (patch)
treeaef4b5df69f23df85f469d7a9b6cb00038cb7347 /module/interaction/EventManager.py
parentshow active addons (diff)
downloadpyload-07ae3e0b09441cec7a7df8ad5a4e961aab04e5eb.tar.xz
save and delete configs
Diffstat (limited to 'module/interaction/EventManager.py')
-rw-r--r--module/interaction/EventManager.py6
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"]: