Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
Module: html.widgets.widget_bool
¶
Bool class.
Represents a boolean using a widget.
2 Classes¶
-
class
IPython.html.widgets.widget_bool.
Checkbox
(value=None, **kwargs)¶ Bases:
IPython.html.widgets.widget_bool._Bool
Displays a boolean
value
in the form of a checkbox.Parameters: value : {True,False}
value of the checkbox: True-checked, False-unchecked
description : str
description displayed next to the checkbox
-
class
IPython.html.widgets.widget_bool.
ToggleButton
(value=None, **kwargs)¶ Bases:
IPython.html.widgets.widget_bool._Bool
Displays a boolean
value
in the form of a toggle button.Parameters: value : {True,False}
value of the toggle button: True-pressed, False-unpressed
description : str
description displayed next to the button
tooltip: str
tooltip caption of the toggle button
icon: str
font-awesome icon name