bokeh.models.widgets.groups

class AbstractGroup(**kwargs)

Bases: bokeh.models.widgets.widget.Widget

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

on_click(handler)

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
labels

property type: labels:List(String)

List of text labels contained in this group.

JSON Prototype
{
  "disabled": false,
  "id": "f3bc036f-887f-4172-b2f0-8b9eb6544479",
  "labels": [],
  "name": null,
  "tags": []
}
class ButtonGroup(**kwargs)

Bases: bokeh.models.widgets.groups.AbstractGroup

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

type

property type: type:Enum(‘default’, ‘primary’, ‘success’, ‘warning’, ‘danger’, ‘link’)

A style for the button, signifying it’s role.

JSON Prototype
{
  "disabled": false,
  "id": "dadd5642-a3d2-47f5-a645-e1e29499f9b1",
  "labels": [],
  "name": null,
  "tags": [],
  "type": "default"
}
class CheckboxButtonGroup(**kwargs)

Bases: bokeh.models.widgets.groups.ButtonGroup

A group of check boxes rendered as toggle buttons.

active

property type: active:List(Int)

The list of indices of selected check boxes.

JSON Prototype
{
  "active": [],
  "disabled": false,
  "id": "33fae984-12b9-4be3-99be-e6ffe54ce7ff",
  "labels": [],
  "name": null,
  "tags": [],
  "type": "default"
}
class CheckboxGroup(**kwargs)

Bases: bokeh.models.widgets.groups.Group

A group of check boxes.

active

property type: active:List(Int)

The list of indices of selected check boxes.

JSON Prototype
{
  "active": [],
  "disabled": false,
  "id": "cd25afe5-1f64-43a9-8fb9-b61573ec5c83",
  "inline": false,
  "labels": [],
  "name": null,
  "tags": []
}
class Group(**kwargs)

Bases: bokeh.models.widgets.groups.AbstractGroup

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

inline

property type: inline:Bool

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

JSON Prototype
{
  "disabled": false,
  "id": "7164dcff-65ca-488a-9f1a-cec6be78ecfd",
  "inline": false,
  "labels": [],
  "name": null,
  "tags": []
}
class RadioButtonGroup(**kwargs)

Bases: bokeh.models.widgets.groups.ButtonGroup

A group of radio boxes rendered as toggle buttons.

active

property type: active:Int

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

JSON Prototype
{
  "active": null,
  "disabled": false,
  "id": "d10e5c28-5d04-4f5f-955e-e0489baaf10c",
  "labels": [],
  "name": null,
  "tags": [],
  "type": "default"
}
class RadioGroup(**kwargs)

Bases: bokeh.models.widgets.groups.Group

A group of radio boxes.

active

property type: active:Int

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

JSON Prototype
{
  "active": null,
  "disabled": false,
  "id": "ce0c0500-60ce-4efc-8624-76194f65b459",
  "inline": false,
  "labels": [],
  "name": null,
  "tags": []
}