pyvista.Plotter.track_click_position#
- Plotter.track_click_position(callback=None, side='right', double=False, viewport=False)[source]#
Keep track of the click position.
By default, it only tracks right clicks.
- Parameters:
- callback
callable()
,optional
A callable method that will use the click position. Passes the click position as a length two tuple.
- side
str
, default: “right” The mouse button to track (either
'left'
or'right'
). Also accepts'r'
or'l'
.- doublebool, default:
False
Track single clicks if
False
, double clicks ifTrue
. Defaults to single clicks.- viewportbool, default:
False
If
True
, uses the normalized viewport coordinate system (values between 0.0 and 1.0 and support for HiDPI) when passing the click position to the callback.
- callback