InteractorStyleCaptureMixin.add_observer

Contents

InteractorStyleCaptureMixin.add_observer#

InteractorStyleCaptureMixin.add_observer(
event: str,
callback: Callable[..., None],
) → int[source]#

Keep track of observers.

Parameters:
eventstr

VTK event string

callbackcallable()

Function to call during callback

Returns:
int

The identifier of the added observer.