Support "if image in region:" construct
Bug #1087041 reported by
anatoly techtonik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
In Progress
|
Low
|
RaiMan |
Bug Description
if image in region:
# do something
# is more intuitive than
if region.find(image):
pass
tags: | added: scriptlanguage |
Changed in sikuli: | |
importance: | Undecided → Low |
To post a comment you must log in.
I could send a patch if I could edit .py files, but .py files are locked in .jars and I can't compile Sikuli to test.
So, for now the hint is: use __contains__() magic method.