pyvista.RenderWindowInteractor.enable_interactor_style#
- RenderWindowInteractor.enable_interactor_style(style: str | None = None) None[source]#
Set the interactive style to a built-in or registered mode.
- Parameters:
- style
str,optional Name of the interactor style to enable. Built-in styles use names that mirror the public
enable_*_stylemethods, such as'terrain_style'. IfNone, use the current plotter theme’sinteractor_styleor the global theme when no plotter is attached.
- style
- Raises:
TypeErrorIf the registered handler does not resolve to an interactor style instance.
ValueErrorIf the style name is not known.
Examples
Enable a built-in interactor style by name.
>>> import pyvista as pv >>> pl = pv.Plotter() >>> pl.enable_interactor_style('terrain_style')