SelectBox
SelectBox([multiple, [expand]]) -> SelectBox widgetSubclasses from VBox. Like a html select box.
You can access SelectBox.values to get a set of all selected values.
Arguments
- multiple
- If set to True, multiple options can be selected.
- expand
- If set to True (default) all widgets will expand to be the same width.
SelectBox.add
SelectBox.add(label, value) -> Option widgetAdd an option to SelectBox.
Arguments
- label
- The text or widget to be displayed as the option.
- value
- The value of the option (not displayed).
SelectBox.remove
SelectBox.remove(option) -> NoneRemove option from SelectBox.
Arguments
- option
- Can ether be a string representing an option's value or the option widget.