Activation
activation
Button action and activation abstraction
Classes:
-
Activation
–Base class for all activation mechanism.
Activation
Activation(button: Button)
Base class for all activation mechanism.
Can be used for no-operation activation on display-only button.
Methods:
-
activate
–Function that is executed when a button is activated (pressed, released, turned, etc.).
-
describe
–Describe what the button does in plain English
activate
activate(event) -> bool
Function that is executed when a button is activated (pressed, released, turned, etc.).
Default is to tally number of times this button was pressed. It should have been released as many times :-D.
**** No command gets executed here **** except if there is an associated view with the button.
It removes guard if it was present and closed.
describe
describe() -> str
Describe what the button does in plain English