X-1.0rc2: Region spatial operators (nearby, left, right, ...) do not return a Region object --- workaround
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Released
|
Critical
|
RaiMan |
Bug Description
affected is the Python level
they seem to return a Region object from the Java level, that cannot be used the same way on the Python level
This gives errors when trying to use Region methods with these Regions (like Region.click())
*** workaround
cast the region to a Region object on the Python level, e.g.
Region(
-------
This gives the error above:
for ready in region.
ready.
Note that this also gives the same error:
for ready in region.
ready = Region(ready)
ready.
Only this one works without `click(): expected 2 args; got 1` error:
for ready in region.
Region(
summary: |
- X-1.0rc2: TypeError: click(): expected 2 args; got 1 + X-1.0rc2: Region spatial operators (nearby, left, right, ...) do not + return a Region object |
Changed in sikuli: | |
status: | New → Confirmed |
description: | updated |
Changed in sikuli: | |
status: | Confirmed → Fix Committed |
importance: | Undecided → Low |
assignee: | nobody → RaiMan (raimund-hocke) |
milestone: | none → x1.0 |
tags: | added: fkt-region |
Changed in sikuli: | |
importance: | Low → High |
Changed in sikuli: | |
importance: | High → Critical |
Changed in sikuli: | |
status: | Fix Committed → Fix Released |
Thanks for reporting this.