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)
--
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