sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #48036
Re: [Question #672156]: question about handler attribute
Question #672156 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/672156
Status: Open => Answered
RaiMan proposed the following answer:
supposing we are talking about scripting:
easiest way: using global
- collect the regions, whose observers should be stopped ins list:
toBeStopped = (region2, region2, region3, ...)
- in the handler use global to access the list:
def handler(event):
global toBeStopped
for reg in toBeStopped:
# do something
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.