Class ButtonStateKind
- class ooodev.utils.kind.button_state_kind.ButtonStateKind(value)[source]
Specifies state of a tri-state button control.
New in version 0.29.0.
- static from_str(s)[source]
Gets an
ButtonStateKind
instance from string.- Parameters:
s (str) – String that represents the name of an enum Name.
- Raises:
ValueError – If input string is empty.
AttributeError – If unable to get
ButtonStateKind
instance.
- Returns:
Enum instance.
- Return type:
- DONT_KNOW = 2
State don’t know
- NOT_PRESSED = 0
State not pressed
- PRESSED = 1
State pressed