class _Dispatch(_DispatchCommon[
Mirror the event listening definitions of an Events class with listener collections. Classes which define a "dispatch" member will return a non-instantiated :class:`._Dispatch` subclass when the member is accessed at the class level. When the "dispatch" member is accessed at the instance level of its owner, an instance of the :class:`._Dispatch` class is returned. A :class:`._Dispatch` class is generated for each :class:`.Events` class defined, by the :meth:`._HasEventsDispatch._create_dispatcher_class` method. The original :class:`.Events` classes remain untouched. This decouples the construction of :class:`.Events` subclasses from the implementation used by the event internals, and allows inspecting tools like Sphinx to work in an unsurprising way against the public API.
Method | __getattr__ |
Undocumented |
Method | __init__ |
Undocumented |
Method | __reduce__ |
Undocumented |
Class Variable | __slots__ |
Undocumented |
Method | _clear |
Undocumented |
Method | _for |
Undocumented |
Method | _for |
Undocumented |
Method | _join |
Create a 'join' of this :class:`._Dispatch` and another. |
Method | _listen |
Undocumented |
Method | _update |
Populate from the listeners in another :class:`_Dispatch` object. |
Class Variable | _active |
Undocumented |
Class Variable | _empty |
Undocumented |
Class Variable | _event |
Undocumented |
Class Variable | _events |
reference back to the Events class. |
Class Variable | _joined |
Undocumented |
Instance Variable | _empty |
Undocumented |
Instance Variable | _instance |
Undocumented |
Instance Variable | _parent |
Undocumented |
Property | _event |
Undocumented |
Optional[ _Dispatch[ _ET]]
, instance_cls: Optional[ Type[ _ET]]
= None):
(source)
¶
Undocumented
Create a 'join' of this :class:`._Dispatch` and another. This new dispatcher will dispatch events to both :class:`._Dispatch` objects.