New question #223584 on Sikuli:
https://answers.launchpad.net/sikuli/+question/223584

def catchEv (event):
    #stopObserver
    matchEv = event.match
    matchEv.highlight(1)
    print "---event catched---"

print "-------------------begin-------------------"
onAppear("picture", catchEv)
observe(background=True)
wait (10) # show-hide picture to see observer works
stopObserver # don't work?
print "--------------------end--------------------"
exit()

# now again show-hide picture, you see that observer continue works (after end 
of script or Alt+Shift+c)
# only reload Sikuli IDE helps to stop this


-- 
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