← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #690264]: observe - onChange not working for me!

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
This worked for me:

reg = selectRegion()

def handler(evt):
    print "changed"
    evt.stopObserver()

reg.onChange(handler)
reg.observe(10)

I select a region in a tabbed editor and then switch the tab, so the
region content changes.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.