summaryrefslogtreecommitdiffstats
path: root/module/interaction/EventManager.py
diff options
context:
space:
mode:
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"]: