iblqt.widgets.StatefulButton
- class iblqt.widgets.StatefulButton[source]
Bases:
QPushButton
A QPushButton that maintains an active/inactive state.
- __init__(*args, active=False, **kwargs)[source]
Initialize the StatefulButton with the specified active state.
- getActive()[source]
Get the active state of the button.
- Returns:
True if the button is active, False otherwise.
- Return type:
- setActive(value)[source]
Set the active state of the button.
Emits stateChanged if the state has changed.
- Parameters:
value (
bool
) – The new active state of the button.
- active: pyqtProperty
The active state of the button.