sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #14986
[Bug 1087041] Re: Support "if image in region:" construct
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.
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1087041
Title:
Support "if image in region:" construct
Status in Sikuli:
New
Bug description:
if image in region:
# do something
# is more intuitive than
if region.find(image):
pass
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1087041/+subscriptions
References