bokeh.models.widgets.groups

class AbstractGroup(**kwargs)

Bases: bokeh.models.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
labels

property type: List(String)

List of text labels contained in this group.

[
  {
    "attributes": {
      "disabled": false,
      "doc": null,
      "id": "4d3789cb-f88f-45a9-869d-8c36fcde2e94",
      "labels": [],
      "name": null,
      "tags": []
    },
    "id": "4d3789cb-f88f-45a9-869d-8c36fcde2e94",
    "type": "AbstractGroup"
  }
]
class ButtonGroup(**kwargs)

Bases: bokeh.models.widgets.groups.AbstractGroup

Abstract base class for groups with items rendered as buttons. ButtonGroup is not generally useful to instantiate on its own.

type

property type: Enum(‘default’, ‘primary’, ‘success’, ‘warning’, ‘danger’, ‘link’)

A style for the button, signifying it’s role.

[
  {
    "attributes": {
      "disabled": false,
      "doc": null,
      "id": "b0f02df5-fad3-4a80-a87b-01fc52ec0eaf",
      "labels": [],
      "name": null,
      "tags": [],
      "type": "default"
    },
    "id": "b0f02df5-fad3-4a80-a87b-01fc52ec0eaf",
    "type": "ButtonGroup"
  }
]
class CheckboxButtonGroup(**kwargs)

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.

[
  {
    "attributes": {
      "active": [],
      "disabled": false,
      "doc": null,
      "id": "e5cc8371-3641-427c-88f0-db74884a2060",
      "labels": [],
      "name": null,
      "tags": [],
      "type": "default"
    },
    "id": "e5cc8371-3641-427c-88f0-db74884a2060",
    "type": "CheckboxButtonGroup"
  }
]
class CheckboxGroup(**kwargs)

Bases: bokeh.models.widgets.groups.Group

A group of check boxes.

active

property type: List(Int)

The list of indices of selected check boxes.

[
  {
    "attributes": {
      "active": [],
      "disabled": false,
      "doc": null,
      "id": "75ba82fc-d5b2-4166-a732-5ee82c5cbef2",
      "inline": false,
      "labels": [],
      "name": null,
      "tags": []
    },
    "id": "75ba82fc-d5b2-4166-a732-5ee82c5cbef2",
    "type": "CheckboxGroup"
  }
]
class Group(**kwargs)

Bases: bokeh.models.widgets.groups.AbstractGroup

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

inline

property type: Bool

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

[
  {
    "attributes": {
      "disabled": false,
      "doc": null,
      "id": "524471a8-8950-4f7c-a634-7688ac92f921",
      "inline": false,
      "labels": [],
      "name": null,
      "tags": []
    },
    "id": "524471a8-8950-4f7c-a634-7688ac92f921",
    "type": "Group"
  }
]
class RadioButtonGroup(**kwargs)

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.

[
  {
    "attributes": {
      "active": null,
      "disabled": false,
      "doc": null,
      "id": "ab35fd4a-036d-46f0-9ce7-7bf80aafbf84",
      "labels": [],
      "name": null,
      "tags": [],
      "type": "default"
    },
    "id": "ab35fd4a-036d-46f0-9ce7-7bf80aafbf84",
    "type": "RadioButtonGroup"
  }
]
class RadioGroup(**kwargs)

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.

[
  {
    "attributes": {
      "active": null,
      "disabled": false,
      "doc": null,
      "id": "5f68aa9d-5a12-4798-a064-8d38d82c42b7",
      "inline": false,
      "labels": [],
      "name": null,
      "tags": []
    },
    "id": "5f68aa9d-5a12-4798-a064-8d38d82c42b7",
    "type": "RadioGroup"
  }
]