pyvista.RenderWindowInteractor.track_mouse_position#

RenderWindowInteractor.track_mouse_position(callback)[source]#

Keep track of the mouse position.

This will potentially slow down the interactor. No callbacks supported here - use pyvista.Plotter.track_click_position() instead.

Parameters:
callbackcallable()

A function to call back when the mouse moves. This function will be passed the current mouse position.