sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40597
Re: [Question #266141]: [1.1.0] Jython-2.7-rc3: Subclassing Region: with __init__ the java level constructors not used with super()__init__(), leaving Region "empty" --- workaround
Question #266141 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266141
Ryan posted a new comment:
RaiMan fixed this in 1.1.0 actually (as per my request). If you subclass
Region you need to include self.init(ptn) in the __init__. The ptn
should be whatever the incoming variable to create the region is - the
image path, for instance. The point of the fix is to get around the fact
that there is no __init__ as mentioned above
This should probably get added to the docs at some point too. I get
null regions if I don't add this as well.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.