[Sikuli-driver] [Bug 743271] Re: 'str' object has no attribute '__exit__'

2011-03-27 Thread RaiMan
This is not a bug. You have to use a region object with a with() - seems you are using an image. see docs: http://sikuli.org/docx/region.html#grouping-method-calls-with- region e.g. reg = find(some-image.png).left(1).right(400).below(500) with (reg): # your code in this case a region is

[Sikuli-driver] [Question #150648]: (Chinese (Traditional)) about for loop

2011-03-27 Thread steven
A question was asked in a language (Chinese (Traditional)) spoken by none of the registered Sikuli answer contacts. https://answers.launchpad.net/sikuli/+question/150648 my code : a = [ 1 , 2 , 3 , 4 ] type(str(a[3])) type(str(a[2])) type(str(a[1])) type(str(a[0])) then it will printf : 4 3 2