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": "e457747f-c497-4eb9-a00a-79c59185bbf8",
  "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": "77c1bbdf-d462-4304-b192-e0ab84a76552",
  "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": "3be3d5db-52a9-4c31-8d5b-cd3e0c5678b7",
  "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": "a6f326d6-e218-4bf3-91d6-fa1ed333478b",
  "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": "3e3de6cc-6806-49a3-9112-073ba5675d9e",
  "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": "0cc38f07-0f46-4493-a8b6-3dc31a841c3d",
  "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": "852d7476-e7b5-4f13-b2d3-bad792f6380b",
  "inline": false,
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "tags": [],
  "width": null
}