← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #139814]: How to get the Y, X, H, W of a Match object

 

Question #139814 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/139814

RaiMan proposed the following answer:
Sorry, for misleading to some extent: (I mixed it up with Java rectangle)
this is correct:
w = m.w # or m.getW()
h = m.h # or m.getH()

It is not in the docs, because these attributes are class/object
internal.

It is recommended to use the setter and getter methods, which are
defined for a region. These will be available all time independent from
internal class design.

Thanks for the doc tip: when converting the doc to the new system, the
get... methods for class Region fell from the table ;-) will be repaired
soon.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.