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": "4a5d0f3f-fe92-4637-a2be-25409cdfc182",
  "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": "78225cef-e1bd-43c4-ae46-23055cfe27a5",
  "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": "bdbb8b7a-afbe-4864-a379-97259263bc31",
  "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": "06c365f4-a5c8-4f81-86a2-bf0a9321f635",
  "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": "4c6f3a18-396c-4183-8fc8-d1df00255889",
  "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": "c4be1985-8444-4bf9-b09f-99f0b1643d85",
  "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": "865ef1b5-3ff1-48b8-911c-9a9757c38e02",
  "inline": false,
  "labels": [],
  "name": null,
  "tags": []
}