Change variable in onChange
Asked by
stephane
I have a loop running while at the same time observing a region on my screen:
def changed(event):
restart=True
restart=False
region.
region.
while True:
if restart:
#do stuff
else:
#do other stuff
region.
This code does not seem to work, ie the value of "restart" is not updated or is not picked up by the while loop.
How could I make this work?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply:
To post a message you must log in.