X-1.0rc2: with: not working with "Region-like" objects (rc3: only match object)

Bug #783427 reported by RaiMan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Won't Fix
Medium
RaiMan

Bug Description

I thought this was already in the list, but could not find it.

Trying to use with: with a Match object or an App().window() brings exception:

AttributeError: 'org.sikuli.script.Region' object has no attribute '__exit__'

*** workaround: cast the objects to Region objects when using with:

with Region(the_failing_object):
    pass # the actions

Tags: fkt-region
Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :

In RC3, the with statement will work with App.window().
Match object still needs a Region() wrapper, though.

Changed in sikuli:
status: New → In Progress
RaiMan (raimund-hocke)
summary: - X-1.0rc2: with: not working with "Region-like" objects
+ X-1.0rc2: with: not working with "Region-like" objects (rc3: only match
+ object)
RaiMan (raimund-hocke)
Changed in sikuli:
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → x1.0
tags: added: fkt-region
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Undecided → High
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: x1.0 → x1.1
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Medium
milestone: 1.1.0 → 2.0.0
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Won't Fix
milestone: 2.0.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.