Widget
A configurable widget.
Usage
Widget(name)Parameters
name: str-
The widget name.
Methods
| Name | Description |
|---|---|
| configure() | Configure the widget appearance. |
| run() | Run the widget and return a result string. |
configure()
Configure the widget appearance.
Usage
configure(color="red", size=5)Parameters
color: str = "red"-
Widget color.
size: int = 5-
Widget size.
run()
Run the widget and return a result string.
Usage
run()Returns
str-
A summary of the widget state.