← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #205802]: Sikuli script doesn't work

 

Question #205802 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/205802

j posted a new comment:
Thanks for the interesting lambda function. 
I always used a closure:

def getWrapper(pattern):
    def wrapper():
        return exists(pattern)
    return wrapper

method = getWrapper(Pattern("abc.png").similar(0.85))

method()

But lambda seems to be much simpler.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.