bokeh.models.widgets.groups

class AbstractGroup(**kwargs)[source]

Bases: bokeh.models.widgets.widget.Widget

Abstract base class for all kinds of groups.

Note

This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.

callback

property type: Instance ( Callback )

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

labels

property type: List ( String )

List of text labels contained in this group.

js_on_click(handler)[source]

Set up a handler for button check/radio box clicks including the selected indices.

on_click(handler)[source]

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
JSON Prototype
{
  "callback": null,
  "css_classes": [],
  "disabled": false,
  "height": null,
  "id": "b044fe02-99bf-463e-ae3f-61a391b51e4a",
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}
class ButtonGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.AbstractGroup, bokeh.models.widgets.buttons.ButtonLike

Abstract base class for groups with items rendered as buttons.

Note

This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.

JSON Prototype
{
  "button_type": "default",
  "callback": null,
  "css_classes": [],
  "disabled": false,
  "height": null,
  "id": "53795029-5f04-42a1-9c44-9d2833c50b9d",
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}
class CheckboxButtonGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.ButtonGroup

A group of check boxes rendered as toggle buttons.

active

property type: List ( Int )

The list of indices of selected check boxes.

JSON Prototype
{
  "active": [],
  "button_type": "default",
  "callback": null,
  "css_classes": [],
  "disabled": false,
  "height": null,
  "id": "4b2409a5-5e14-4b35-b192-88d3cfc75aff",
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}
class CheckboxGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.Group

A group of check boxes.

active

property type: List ( Int )

The list of indices of selected check boxes.

JSON Prototype
{
  "active": [],
  "callback": null,
  "css_classes": [],
  "disabled": false,
  "height": null,
  "id": "848fd076-f51d-402a-9cf7-16522575865b",
  "inline": false,
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}
class Group(**kwargs)[source]

Bases: bokeh.models.widgets.groups.AbstractGroup

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

Note

This is an abstract base class used to help organize the hierarchy of Bokeh model types. It is not useful to instantiate on its own.

inline

property type: Bool

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

JSON Prototype
{
  "callback": null,
  "css_classes": [],
  "disabled": false,
  "height": null,
  "id": "efd7be90-fa82-4696-a6c6-1db7a65605bc",
  "inline": false,
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}
class RadioButtonGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.ButtonGroup

A group of radio boxes rendered as toggle buttons.

active

property type: Int

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

JSON Prototype
{
  "active": null,
  "button_type": "default",
  "callback": null,
  "css_classes": [],
  "disabled": false,
  "height": null,
  "id": "748d7288-5a35-4364-a615-527e051b672c",
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}
class RadioGroup(**kwargs)[source]

Bases: bokeh.models.widgets.groups.Group

A group of radio boxes.

active

property type: Int

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

JSON Prototype
{
  "active": null,
  "callback": null,
  "css_classes": [],
  "disabled": false,
  "height": null,
  "id": "d1455849-beb0-4ebb-b55b-ad17fe8831e4",
  "inline": false,
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}