I'm trying to use the new class wx.SVGFileDC. However, I cannot use
the constructor with 4 (+1) arguments that is defined in the wxWidgets
docs. Apparently there is an __init__ method which accepts only 1
argument (self), but this method raises a "No constructor defined"
exception.
Am I doing something wrong, or there is a problem with the library?
There is a problem in the library. wxSVGFileDC is defined correctly, but it appears that SWIG is generating code for it as if it was an abstract class for some reason. I'll figure it out.
···
On 11/28/10 12:05 PM, l.allulli wrote:
Hello,
I'm trying to use the new class wx.SVGFileDC. However, I cannot use
the constructor with 4 (+1) arguments that is defined in the wxWidgets
docs. Apparently there is an __init__ method which accepts only 1
argument (self), but this method raises a "No constructor defined"
exception.
Am I doing something wrong, or there is a problem with the library?
Arrg. This was one of those stupid little one-line errors that takes two days of staring at to see. I'll commit the fix once I've had a chance to reSWIG it on all the platforms.
···
On 11/29/10 9:34 AM, Robin Dunn wrote:
On 11/28/10 12:05 PM, l.allulli wrote:
Hello,
I'm trying to use the new class wx.SVGFileDC. However, I cannot use
the constructor with 4 (+1) arguments that is defined in the wxWidgets
docs. Apparently there is an __init__ method which accepts only 1
argument (self), but this method raises a "No constructor defined"
exception.
Am I doing something wrong, or there is a problem with the library?
There is a problem in the library. wxSVGFileDC is defined correctly, but
it appears that SWIG is generating code for it as if it was an abstract
class for some reason. I'll figure it out.
Man, that is what is called 'premium support'
Thanks a lot Robin!
Luca
···
On 30 Nov, 19:06, Robin Dunn <ro...@alldunn.com> wrote:
On 11/29/10 9:34 AM, Robin Dunn wrote:
> On 11/28/10 12:05 PM, l.allulli wrote:
>> Hello,
>> I'm trying to use the new class wx.SVGFileDC. However, I cannot use
>> the constructor with 4 (+1) arguments that is defined in the wxWidgets
>> docs. Apparently there is an __init__ method which accepts only 1
>> argument (self), but this method raises a "No constructor defined"
>> exception.
>> Am I doing something wrong, or there is a problem with the library?
> There is a problem in the library. wxSVGFileDC is defined correctly, but
> it appears that SWIG is generating code for it as if it was an abstract
> class for some reason. I'll figure it out.
Arrg. This was one of those stupid little one-line errors that takes
two days of staring at to see. I'll commit the fix once I've had a
chance to reSWIG it on all the platforms.
--
Robin Dunn
Software Craftsmanhttp://wxPython.org