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": "0c08e652-9ea7-4c94-8095-6ec853c46463",
      "labels": [],
      "name": null,
      "tags": []
    },
    "id": "0c08e652-9ea7-4c94-8095-6ec853c46463",
    "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": "bf57224e-1e7c-4c8a-86df-4d037aa0c6e0",
      "labels": [],
      "name": null,
      "tags": [],
      "type": "default"
    },
    "id": "bf57224e-1e7c-4c8a-86df-4d037aa0c6e0",
    "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": "9c83064b-027e-4432-8043-0b9efdaf3003",
      "labels": [],
      "name": null,
      "tags": [],
      "type": "default"
    },
    "id": "9c83064b-027e-4432-8043-0b9efdaf3003",
    "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": "d2925441-01b0-4a36-be72-ec1d368f6240",
      "inline": false,
      "labels": [],
      "name": null,
      "tags": []
    },
    "id": "d2925441-01b0-4a36-be72-ec1d368f6240",
    "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": "68f121ca-1fd8-4a08-8ec9-da1533d3b616",
      "inline": false,
      "labels": [],
      "name": null,
      "tags": []
    },
    "id": "68f121ca-1fd8-4a08-8ec9-da1533d3b616",
    "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": "edab54ec-6974-4eaf-b417-2ab7d917e91a",
      "labels": [],
      "name": null,
      "tags": [],
      "type": "default"
    },
    "id": "edab54ec-6974-4eaf-b417-2ab7d917e91a",
    "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": "c1075ce7-89d3-4d43-8e49-530910222ed0",
      "inline": false,
      "labels": [],
      "name": null,
      "tags": []
    },
    "id": "c1075ce7-89d3-4d43-8e49-530910222ed0",
    "type": "RadioGroup"
  }
]