← Back to team overview

sikuli-driver team mailing list archive

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

 

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

-- 
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:
  In Progress

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/783427/+subscriptions


References