Add make_event(..)
to EventHookContext
This commit is contained in:
parent
72072bbd3d
commit
5dda000c96
1 changed files with 4 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue