[1.1.0] with Region not working properly --- fixed 1.1.1 2016-06-18+
Bug #1591132 reported by
RaiMan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SikuliX |
Fix Committed
|
Critical
|
RaiMan |
Bug Description
I'm wondering why this code does not work:
CenterScreen = Region(
def findInRegion():
with CenterScreen:
if exists(barras[1]) or exists(barras[1]) :
return getLastMatch()
return False
Instead of using the specified region it uses the implicit SCREEN region.
In my experience the with clause has never worked fine.
Regards
To post a comment you must log in.
I will check.