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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to