From 5dda000c9633c9e2c22accb4b4bdc5c4511f6f2b Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 30 Jan 2019 19:37:52 +0000 Subject: [PATCH] Add `make_event(..)` to EventHookContext --- src/EventManager.py | 4 ++++ 1 file changed, 4 insertions(+) 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,