Question #266141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266141
Status: Answered => Open forrest is still having a problem: Yes, that worked for me. Jython adds another "fun" dimension to the challenge of SWD... Thank You for your attention to this. Much appreciated. -----Original Message----- From: boun...@canonical.com [mailto:boun...@canonical.com] On Behalf Of RaiMan Sent: Thursday, April 30, 2015 12:57 AM To: Forrest Johnston Subject: Re: [Question #266141]: [1.1.0] Jython-2.7-rc3: Extending Region breaks when I move to new Sikuli Your question #266141 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/266141 Status: Open => Answered RaiMan proposed the following answer: I do not know wether this is a Jython bug or correct behaviour. The Jython super class Region does not have any __init__. So in previous Jython versions the applicable constructors in the Java super class Region where used in case (up to Now with the latest Jython 2.7-rc3 (is bundled with 1.1.0 now) in the above case, the Java constructors are no longer used in the above case and hence in the end you get an "empty" Region R[0,0 0x0]@Screen null E:Y, T:3.0 ... which then leads to the NPE with the Screen null with highlight() I do not have a solution for that (besides going back to Jython 2.7b4, what I do not want to do though). a workaround: the Java constructors set the coordinates, dimension and screen, so in your case this works: def __init__(self, x=1, y=1, w=1, h=1): self.setRect(x, y, w, h) -- If this answers your question, please go to the following page to let us know that it is solved: https://answers.launchpad.net/sikuli/+question/266141/+confirm?answer_id=0 If you still need help, you can reply to this email or go to the following page to enter your feedback: https://answers.launchpad.net/sikuli/+question/266141 You received this question notification because you asked the question. -- 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 : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp