ScreenshotButton
#
- class ansys.tools.visualization_interface.backends.pyvista.widgets.screenshot.ScreenshotButton(plotter: pyvista.Plotter, dark_mode: bool = False)#
Bases:
ansys.tools.visualization_interface.backends.pyvista.widgets.widget.PlotterWidget
Provides the screenshot widget for the Visualization Interface Tool
Plotter
class.
Overview#
Import detail#
from ansys.tools.visualization_interface.backends.pyvista.widgets.screenshot import ScreenshotButton
Method detail#
- ScreenshotButton.callback(state: bool) → None#
Remove or add the screenshot widget actor upon click.
- Parameters:
- statebool
Whether the state of the button, which is inherited from PyVista, is
True
.
Notes
This method provides a callback function for the screenshot widget. It is called every time the screenshot widget is clicked.