aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-30 19:37:52 +0000
committerGravatar jesopo2019-01-30 19:37:52 +0000
commit5dda000c9633c9e2c22accb4b4bdc5c4511f6f2b (patch)
tree51c5443dba60c410cd75fac95bb23ed9781808b5 /src
parentMake sure to call the specific hook we've decided is valid (commands.py) (diff)
signature
Add `make_event(..)` to EventHookContext
Diffstat (limited to 'src')
-rw-r--r--src/EventManager.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/EventManager.py b/src/EventManager.py
index b83041c3..01f00342 100644
--- a/src/EventManager.py
+++ b/src/EventManager.py
@@ -275,6 +275,10 @@ class EventHookContext(object):
def __init__(self, parent, context):
self._parent = parent
self.context = context
+
+ def make_event(self, **kwargs):
+ return self._parent.make_event(**kwargs)
+
def hook(self, function: CALLBACK_TYPE, priority: int = DEFAULT_PRIORITY,
replay: bool = False, **kwargs) -> EventCallback:
return self._parent._context_hook(self.context, function, priority,