I want to run a function when a variable changes its value for example
I have a variable called 'v1' the default value is ZERO
Let's say I have GUI app and I press button, this button only has one function that add one to 'v1' I want another function run when it detects v1 had been change like
print('v1 change'), run when a button click or user input or anything that can change its value , JavaScript has onchange function dose python has something like that?