NextButton#

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

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

Provides next frame control for animations.

This button steps forward 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 next frame.

Import detail#

from ansys.tools.visualization_interface.backends.pyvista.widgets.next_button import NextButton

Method detail#

NextButton.callback(state: bool) None#

Step to next frame.

Parameters:
statebool

Whether the button is active.