napari.utils.events#

Classes

EmitterGroup

EmitterGroup instances manage a set of related EventEmitters.

Event

Class describing events that occur and can be reacted to with callbacks.

EventEmitter

Encapsulates a list of event callbacks.

EventedDict

Mutable dictionary that emits events when altered.

EventedDictNamespace

An evented dict that also exposes its elements as a simple namespace.

EventedList

Mutable Sequence that emits events when altered.

EventedModel

A Model subclass that emits an event whenever a field value is changed.

EventedSet

An unordered collection of unique elements.

NestableEventedList

Nestable Mutable Sequence that emits recursive events when altered.

RenamedEmitter

Warning emitter to be used when an attribute was renamed or moved to a composition object.

SelectableEventedList

List model that also supports selection.

Selection

A model of selected items, with active and current item.

SupportsEvents

TypedMutableSequence

List mixin that enforces item type, and enables custom indexing.

WarningEmitter

EventEmitter subclass used to allow deprecated events to be used with a warning message.

Functions

napari.utils.events.disconnect_events(emitter: EmitterGroup, listener: object) None[source]#

Disconnect all events between an emitter group and a listener.

Parameters:
napari.utils.events.set_event_tracing_enabled(enabled=True, cfg=None)[source]#