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
callback

property type: callback:Instance(Callback)

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

labels

property type: labels:List(String)

List of text labels contained in this group.

JSON Prototype
{
  "callback": null,
  "disabled": false,
  "height": null,
  "id": "526dd033-8f5a-4450-bcaf-1bc6bbe3fe5f",
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
class ButtonGroup(**kwargs)

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,
  "disabled": false,
  "height": null,
  "id": "51fa6505-2f1d-4bb7-b2d3-f23e33607832",
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
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": [],
  "button_type": "default",
  "callback": null,
  "disabled": false,
  "height": null,
  "id": "30fe042f-603e-4e04-bf44-14e61264c406",
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
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": [],
  "callback": null,
  "disabled": false,
  "height": null,
  "id": "8ee06741-9d54-4bf2-812c-272065054ea8",
  "inline": false,
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
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
{
  "callback": null,
  "disabled": false,
  "height": null,
  "id": "80bec2e9-5b2a-474d-a71e-5c59fe93570c",
  "inline": false,
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
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,
  "button_type": "default",
  "callback": null,
  "disabled": false,
  "height": null,
  "id": "e3b9f8cb-f24b-4fcb-a74b-d0267d2c48fe",
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}
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,
  "callback": null,
  "disabled": false,
  "height": null,
  "id": "dce29a9b-712d-443c-b216-8b0efc535540",
  "inline": false,
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}