pyvista.RenderWindowInteractor.remove_observer#
- RenderWindowInteractor.remove_observer(observer)[source]#
Remove an observer.
- Parameters:
- observer
int
The identifier of the observer to remove.
- observer
Examples
Add an observer and immediately remove it.
>>> import pyvista as pv >>> pl = pv.Plotter() >>> obs_enter = pl.iren.add_observer( ... "EnterEvent", lambda *_: print('Enter!') ... ) >>> pl.iren.remove_observer(obs_enter)