bokeh.models.widgets.groups

class AbstractGroup(**kwargs)[source]

Bases: bokeh.models.widgets.widget.Widget

Abstract base class for all kinds of groups. AbstractGroup is not generally useful to instantiate on its own.

callback

property type: Instance ( Callback )

A callback to run in the browser whenever a button group is manipulated.

labels

property type: List ( String )

List of text labels contained in this group.

on_click(handler)[source]

Set up a handler for button check/radio box clicks including the selected indices.

Parameters:handler (func) – handler function to call when button is clicked.
Returns:None
JSON Prototype
{
  "callback": null,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "0697d411-1bf2-4fdc-aa42-0fd9e47a0488",
  "js_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
class ButtonGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.AbstractGroup, bokeh.models.widgets.buttons.ButtonLike

Abstract base class for groups with items rendered as buttons. ButtonGroup is not generally useful to instantiate on its own.

JSON Prototype
{
  "button_type": "default",
  "callback": null,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "feb2ca56-5433-4db4-a5d3-97ecc366a7ce",
  "js_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
class CheckboxButtonGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.ButtonGroup

A group of check boxes rendered as toggle buttons.

active

property type: List ( Int )

The list of indices of selected check boxes.

JSON Prototype
{
  "active": [],
  "button_type": "default",
  "callback": null,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "11400d2d-373c-4f39-9f25-eee845e8bc53",
  "js_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
class CheckboxGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.Group

A group of check boxes.

active

property type: List ( Int )

The list of indices of selected check boxes.

JSON Prototype
{
  "active": [],
  "callback": null,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "0bb5b4d2-bb90-48b0-8b32-735eadc6a883",
  "inline": false,
  "js_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
class Group(**kwargs)[source]

Bases: bokeh.models.widgets.groups.AbstractGroup

Abstract base class for groups with items rendered as check/radio boxes.

inline

property type: Bool

Should items be arrange vertically (False) or horizontally in-line (True).

JSON Prototype
{
  "callback": null,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "c12cae24-0fbc-4108-af5c-620342bf9dd4",
  "inline": false,
  "js_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
class RadioButtonGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.ButtonGroup

A group of radio boxes rendered as toggle buttons.

active

property type: Int

The index of the selected radio box, or None if nothing is selected.

JSON Prototype
{
  "active": null,
  "button_type": "default",
  "callback": null,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "bf760bb0-cba1-4256-83ee-ee20b7eca46b",
  "js_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
class RadioGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.Group

A group of radio boxes.

active

property type: Int

The index of the selected radio box, or None if nothing is selected.

JSON Prototype
{
  "active": null,
  "callback": null,
  "css_classes": null,
  "disabled": false,
  "height": null,
  "id": "fbb6ba1a-5ca5-43b2-923b-d6fc2f8e63ae",
  "inline": false,
  "js_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}