IPython Documentation

Table Of Contents

Previous topic

Module: html.widgets.widget

Next topic

Module: html.widgets.widget_box

This Page

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