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": "8bdb8a0c-245f-404b-9e49-5e65d74ccb43",
  "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": "1d78e321-fb89-430e-839c-ad648783ed38",
  "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": "dfa26a2b-bf9c-408b-b9c2-3d14d61ae1c3",
  "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": "b84641ef-96c7-49cb-916a-4f44c3506936",
  "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": "12e4a2d8-55eb-47f6-bda3-fa8c5fbaf21a",
  "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": "275b2200-00e2-4da5-8442-3d3721fed7d6",
  "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": "3d7d9de8-61ba-4f43-b24c-cffbe1ec5d64",
  "inline": false,
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}