[1.1.0+] HowTo use Region.observe()
usage is correct - problem fixed with 1.1.1 nightly 2016-11-29
-------
I don't understand, why this code hangs up (I use latest 1.1.1 nightly version).
def myhandler(event):
print "Seen"
event.
img = "a.png"
reg = Region(
reg.onAppear(img, myhandler)
reg.observeInBa
reg.stopObserver()
# img is on the screen, so myhandler should immediately run and print "Seen". But I see the following:
-------
Exception in thread "Thread-11" Traceback (most recent call last):
File "C:\SikuliX\SikuliX 1.1.1 Nov 07\sikulix.
...
File "C:\SikuliX\SikuliX 1.1.1 Nov 07\sikulix.
...
...
RuntimeError: maximum recursion depth exceeded (Java StackOverflowError)
-------
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: