Widget
A configurable widget.
Usage
Widget()Parameters
name: str-
Display name of the widget.
size: int = 100-
Size in pixels (default 100).
Methods
| Name | Description |
|---|---|
| render() | Render the widget to HTML. |
| resize() | Resize the widget. |
render()
Render the widget to HTML.
Usage
render()Returns
str-
An HTML string.
resize()
Resize the widget.
Usage
resize(new_size)Parameters
new_size: int-
New size in pixels.
Raises
WidgetError-
If new_size is negative.