PlayPauseButton#
- class ansys.tools.visualization_interface.backends.pyvista.widgets.play_pause_button.PlayPauseButton(plotter: pyvista.Plotter, animation, dark_mode: bool = False)#
Bases:
ansys.tools.visualization_interface.backends.pyvista.widgets.button.ButtonProvides play/pause toggle control for animations.
This button switches between play and pause icons dynamically based on the animation state.
- Parameters:
- plotter
Plotter Plotter to draw the button on.
- animation
Animation Animation instance to control.
- dark_modebool,
optional Whether to activate the dark mode or not.
- plotter
Overview#
Toggle between play and pause. |
Import detail#
from ansys.tools.visualization_interface.backends.pyvista.widgets.play_pause_button import PlayPauseButton