## Widget


A configurable widget.


Usage


``` python
Widget(name)
```


## Parameters


`name: str`  
The widget name.


## Methods

| Name | Description |
|----|----|
| [configure()](#configure) | Configure the widget appearance. |
| [run()](#run) | Run the widget and return a result string. |

------------------------------------------------------------------------


#### configure()


Configure the widget appearance.


Usage


``` python
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


``` python
run()
```


##### Returns


`str`  
A summary of the widget state.
