← Back to team overview

sikuli-driver team mailing list archive

[Bug 783427] [NEW] X-1.0rc2: with: not working with "Region-like" objects

 

Public bug reported:

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

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/783427

Title:
  X-1.0rc2: with: not working with "Region-like" objects

Status in Sikuli:
  New

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


Follow ups

References