get_state
- Widget.get_state(key=None, drop_defaults=False)[source]
Gets the widget state, or a piece of it.
- Parameters:
key (unicode or iterable (optional)) – A single property’s name or iterable of property names to get.
- Returns:
state (dict of states)
metadata (dict) – metadata for each field: {key: metadata}