bokeh.models.widgets.layouts

Various kinds of layout widgets.

class BaseBox(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.Layout

Abstract base class for HBox and VBox. Do not use directly.

children

property type: children:List(Instance(Component))

The list of children, which can be other widgets (including layouts) and plots.

JSON Prototype
{
  "children": [],
  "disabled": false,
  "height": null,
  "id": "05946ef0-1322-4372-98cc-3cb8e1d42084",
  "name": null,
  "tags": [],
  "width": null
}
class HBox(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.BaseBox

Lay out child widgets in a single horizontal row.

Children can be specified as positional arguments, as a single argument that is a sequence, or using the children keyword argument.

JSON Prototype
{
  "children": [],
  "disabled": false,
  "height": null,
  "id": "bf9fc288-1c72-4119-ae9e-0fc36d1debcd",
  "name": null,
  "tags": [],
  "width": null
}
class Layout(**kwargs)

Bases: bokeh.models.widgets.widget.Widget

An abstract base class for layout widgets. Layout is not generally useful to instantiate on its own.

height

property type: height:Int

An optional height for the widget (in pixels).

width

property type: width:Int

An optional width for the widget (in pixels).

JSON Prototype
{
  "disabled": false,
  "height": null,
  "id": "37a6371b-c9b2-45e4-a115-fd1a7b07e4e9",
  "name": null,
  "tags": [],
  "width": null
}
class VBox(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.BaseBox

Lay out child widgets in a single vertical row.

Children can be specified as positional arguments, as a single argument that is a sequence, or using the children keyword argument.

JSON Prototype
{
  "children": [],
  "disabled": false,
  "height": null,
  "id": "1f5c80ed-a24e-4b85-aac5-9acb63583e70",
  "name": null,
  "tags": [],
  "width": null
}
class VBoxForm(*args, **kwargs)

Bases: bokeh.models.widgets.layouts.VBox

Basically, a VBox, where all components (generally form stuff) is wrapped in a <form> tag - important for bootstrap css

JSON Prototype
{
  "children": [],
  "disabled": false,
  "height": null,
  "id": "89641117-7d3a-4c4a-97a0-f38925bc27e0",
  "name": null,
  "tags": [],
  "width": null
}