sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15641
Re: [Question #219548]: Passing a Region as a arguement
Question #219548 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/219548
Status: Open => Answered
RaiMan proposed the following answer:
Hi, fan #1 ;-)
Don't know if it is a typo: mind indentation !
Do not use Region as variable name!
We are talking Python!
to avoid clashes: start variable names with lower case letters!
def myTest(reg, value):
if reg.exists(value):
test = "passed"
else:
test = reg.text()
return test
#end function here
val = f.readline().strip()
print val, myTest(someRegion, val)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.