← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #694564]: Region methods getRow and getCol does not work

 

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

    Status: Open => Answered

Simon Plivav proposed the following answer:
reg = getRow(3,4)

What you wrote is bad style, or even not functional. What is your
intention, to get a cell or a row?

[Below reg = Region(something, e.g. SCREEN)]

You should provide a region that is having rows set up by
reg.setRows(3).  Then get a row as row=reg.getRow(2)

With two arguments like you tried you should have used reg.setRaster(x,
y), then you can select cells of that raster like reg.getCell(2,2).

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.