New question #157716 on Sikuli:
https://answers.launchpad.net/sikuli/+question/157716

>From this link, 
>http://sikuli.org/docx/match.html#creating-a-match-getting-attributes, it says 
>"http://sikuli.org/docx/match.html#creating-a-match-getting-attributes";,  Does 
>it mean that class Match is a subclass of class Region?

I ask this question because I have some code like
m = find(XXX)
with m:
    some actions 

When I try to run the code, Sikuli reports "AttributeError: 
'org.sikuli.script.Match' object has no attribute '__exit__'. Sikuli reports 
the error occurs at line "m = find(XXX)", but if I comment out the "with m: 
some actions", "m = find(XXX)" can run without error.

What's wrong with my code? Thanks.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to