Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
Module: html.widgets.widget_button
¶
ButtonWidget class.
Represents a button in the frontend using a widget. Allows user to listen for click events on the button and trigger backend code when the clicks are fired.
1 Class¶
Bases:
IPython.html.widgets.widget.DOMWidget
Constructor
Register a callback to execute when the button is clicked.
The callback will be called with one argument, the clicked button widget instance.
Parameters: remove : bool (optional)
Set to true to remove the callback from the list of callbacks.