Button
#
- class ansys.tools.visualization_interface.backends.pyvista.widgets.button.Button(plotter: pyvista.Plotter, button_config: tuple)#
Bases:
ansys.tools.visualization_interface.backends.pyvista.widgets.widget.PlotterWidget
Provides the abstract class for implementing buttons in PyAnsys.
- Parameters:
- plotter
Plotter
Plotter to draw the buttons on.
- button_config
tuple
Tuple containing the position and the path to the icon of the button.
- plotter
Notes
This class wraps the PyVista
add_checkbox_button_widget()
method.
Overview#
Get the functionality of the button, which is implemented by subclasses. |
Assign the image that represents the button. |
Import detail#
from ansys.tools.visualization_interface.backends.pyvista.widgets.button import Button
Attribute detail#
- Button.button_config#