Variable
- class Varwin.Variable
Bases:
objectRepresents a variable that can trigger events when its value changes.
- property Value: Any
Gets the current value of the variable.
Example:
result = instance.Value
- AddValueChangedHandler(handler: Callable[[Any, Any], CoroutineType]) None
Adds a handler function to be called when the variable’s value changes.
- Parameters:
handler –
Asynchronous handler function with signature:
oldValue (Any)
newValue (Any)
Example:
async def OnValueChanged(oldValue, newValue): ... instance.AddValueChangedHandler(OnValueChanged)