← Back to team overview

sikuli-driver team mailing list archive

[Question #223584]: observe(background=True) works after stopping script, is this correct?

 

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.