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": null,
  "disabled": false,
  "height": null,
  "id": "7cb02855-6ced-4b2a-96fd-3c26807bb102",
  "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": "c67fca41-0c07-4179-966b-c4db2c7c190e",
  "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": "513bc10f-6dfe-4eee-83e1-f22218e8908d",
  "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": "1b593821-006d-4a7f-83eb-bca1cdbc7bf7",
  "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": "3a16653f-546f-4b92-84dc-15b5f4503576",
  "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": "b29cfb4e-40ab-4559-8148-e06108ae118b",
  "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": "e21e04c8-28d4-4726-b23f-f217e286b6bd",
  "inline": false,
  "js_event_callbacks": {},
  "js_property_callbacks": {},
  "labels": [],
  "name": null,
  "sizing_mode": "fixed",
  "subscribed_events": [],
  "tags": [],
  "width": null
}