class documentation

class _ListenerCollection(_CompoundListener):

View In Hierarchy

Instance-level attributes on instances of ._Dispatch.

Represents a collection of listeners.

As of 0.7.9, _ListenerCollection is only first created via the _EmptyListener.for_modify() method.

Method __init__ Undocumented
Method ​_update Populate from the listeners in another _Dispatch object.
Method append Undocumented
Method clear Undocumented
Method for​_modify Return an event collection which can be modified.
Method insert Undocumented
Method remove Undocumented
Class Variable __slots__ Undocumented
Instance Variable ​_exec​_once Undocumented
Instance Variable ​_exec​_w​_sync​_once Undocumented
Instance Variable listeners Undocumented
Instance Variable name Undocumented
Instance Variable parent Undocumented
Instance Variable parent​_listeners Undocumented
Instance Variable propagate Undocumented

Inherited from _CompoundListener:

Method __bool__ Undocumented
Method __call__ Execute this event.
Method __iter__ Undocumented
Method __len__ Undocumented
Method ​_exec​_once​_impl Undocumented
Method ​_exec​_w​_sync​_on​_first​_run No summary
Method ​_memoized​_attr​_​_exec​_once​_mutex Undocumented
Method ​_set​_asyncio Undocumented
Method exec​_once Execute this event, but only if it has not been executed already for this collection.
Method exec​_once​_unless​_exception No summary
Instance Variable ​_exec​_once​_mutex Undocumented

Inherited from _InstanceLevelDispatch (via _CompoundListener):

Method ​_adjust​_fn​_spec Undocumented

Inherited from RefCollection (via _CompoundListener, _InstanceLevelDispatch):

Method ​_memoized​_attr​_ref Undocumented

Inherited from MemoizedSlots (via _CompoundListener, _InstanceLevelDispatch, RefCollection):

Method __getattr__ Undocumented
Method ​_fallback​_getattr Undocumented
def __init__(self, parent, target_cls):

Undocumented

def _update(self, other, only_propagate=True):
Populate from the listeners in another _Dispatch object.
def append(self, event_key, propagate):

Undocumented

def clear(self):

Undocumented

def for_modify(self, obj):

Return an event collection which can be modified.

For _ListenerCollection at the instance level of a dispatcher, this returns self.

def insert(self, event_key, propagate):

Undocumented

def remove(self, event_key):

Undocumented

__slots__: tuple[str, ...] =
_exec_once: bool =
_exec_w_sync_once: bool =
listeners =

Undocumented

name =

Undocumented

parent =

Undocumented

parent_listeners =

Undocumented

propagate: set =

Undocumented