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.

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": null,
  "disabled": false,
  "height": null,
  "id": "74f04ca2-7234-4080-9347-3ba16360bd08",
  "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": null,
  "disabled": false,
  "height": null,
  "id": "023ee7c2-e67d-4fb1-8130-75354f95576b",
  "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": null,
  "disabled": false,
  "height": null,
  "id": "135c7e64-e4dd-4162-a4c3-a53583430f36",
  "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": null,
  "disabled": false,
  "height": null,
  "id": "f2ab9fa5-f56c-46fe-96e8-327d06f9dd30",
  "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": null,
  "disabled": false,
  "height": null,
  "id": "fd54077b-ca2d-45d1-bfc9-c7db3f71d249",
  "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": null,
  "disabled": false,
  "height": null,
  "id": "77882ccd-4e87-4ff2-913a-445a54281e97",
  "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": null,
  "disabled": false,
  "height": null,
  "id": "9707bb1b-a1c9-4477-9fef-981d68e88046",
  "inline": false,
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}