module documentation
Provides managed registration services on behalf of :func:`.listen` arguments. By "managed registration", we mean that event listening functions and other objects can be added to various collections in such a way that their membership in all those collections can be revoked at once, based on an equivalent :class:`._EventKey`.
Class |
|
represents an event target, that is, something we can listen on either with that target as a class or as an instance. |
Class | _ |
Represent :func:`.listen` arguments. |
Function | _clear |
Undocumented |
Function | _collection |
Undocumented |
Function | _removed |
Undocumented |
Function | _stored |
Undocumented |
Function | _stored |
Undocumented |
Type Variable | _ET |
Undocumented |
Type Alias | _ |
Undocumented |
Type Alias | _ |
Undocumented |
Type Alias | _ |
Undocumented |
Type Alias | _ |
Undocumented |
Type Alias | _ |
Undocumented |
Variable | _collection |
Given a _ListenerCollection or _ClsLevelListener, can locate all the original listen() arguments and the listener fn contained |
Variable | _key |
Given an original listen() argument, can locate all listener collections and the listener fn contained |
def _stored_in_collection_multi(newowner:
RefCollection[ _ET]
, oldowner: RefCollection[ _ET]
, elements: Iterable[ _ListenerFnType]
):
(source)
¶
Undocumented
Given a _ListenerCollection or _ClsLevelListener, can locate all the original listen() arguments and the listener fn contained ref(listenercollection) -> { ref(listener_fn) -> (target, identifier, fn), ref(listener_fn) -> (target, identifier, fn), ref(listener_fn) -> (target, identifier, fn), }