class documentation

class _ClsLevelDispatch(RefCollection[_ET]): (source)

View In Hierarchy

Class-level events on :class:`._Dispatch` classes.

Method __init__ Undocumented
Method append Undocumented
Method clear Clear all class level listeners
Method for_modify Return an event collection which can be modified.
Method insert Undocumented
Method remove Undocumented
Method update_subclass Undocumented
Class Variable __slots__ Undocumented
Instance Variable arg_names Undocumented
Instance Variable clsname Undocumented
Instance Variable has_kw Undocumented
Instance Variable legacy_signatures Undocumented
Instance Variable name Undocumented
Method _adjust_fn_spec Undocumented
Method _do_insert_or_append Undocumented
Method _wrap_fn_for_kw Undocumented
Instance Variable _clslevel Undocumented

Inherited from RefCollection:

Class Variable ref Undocumented
Method _memoized_attr_ref Undocumented

Inherited from MemoizedSlots (via RefCollection):

Method __getattr__ Undocumented
Method _fallback_getattr Undocumented
def __init__(self, parent_dispatch_cls: Type[_HasEventsDispatch[_ET]], fn: _ListenerFnType): (source)

Undocumented

def append(self, event_key: _EventKey[_ET], propagate: bool): (source)

Undocumented

def clear(self): (source)

Clear all class level listeners

def for_modify(self, obj: _Dispatch[_ET]) -> _ClsLevelDispatch[_ET]: (source)

Return an event collection which can be modified. For _ClsLevelDispatch at the class level of a dispatcher, this returns self.

def insert(self, event_key: _EventKey[_ET], propagate: bool): (source)

Undocumented

def remove(self, event_key: _EventKey[_ET]): (source)

Undocumented

def update_subclass(self, target: Type[_ET]): (source)

Undocumented

arg_names = (source)

Undocumented

Undocumented

Undocumented

legacy_signatures = (source)

Undocumented

Undocumented

def _adjust_fn_spec(self, fn: _ListenerFnType, named: bool) -> _ListenerFnType: (source)

Undocumented

def _do_insert_or_append(self, event_key: _EventKey[_ET], is_append: bool): (source)

Undocumented

def _wrap_fn_for_kw(self, fn: _ListenerFnType) -> _ListenerFnType: (source)

Undocumented

_clslevel = (source)

Undocumented