PreviousButton#

class ansys.tools.visualization_interface.backends.pyvista.widgets.previous_button.PreviousButton(plotter: pyvista.Plotter, animation, dark_mode: bool = False)#

Bases: ansys.tools.visualization_interface.backends.pyvista.widgets.button.Button

Provides previous frame control for animations.

This button steps backward one frame.

Parameters:
plotterPlotter

Plotter to draw the button on.

animationAnimation

Animation instance to control.

dark_modebool, optional

Whether to activate the dark mode or not.

Overview#

callback

Step to previous frame.

Import detail#

from ansys.tools.visualization_interface.backends.pyvista.widgets.previous_button import PreviousButton

Method detail#

PreviousButton.callback(state: bool) None#

Step to previous frame.

Parameters:
statebool

Whether the button is active.