RenderWindowInteractor.clear_events_for_key

RenderWindowInteractor.clear_events_for_key#

RenderWindowInteractor.clear_events_for_key(
key: str,
*,
raise_on_missing: bool = False,
) → None[source]#

Remove the callbacks associated to the key.

Parameters:
keystr

Key to clear events for.

raise_on_missingbool, default: False

Whether to raise a ValueError if there are no events registered for the given key.