[wxpython-dev] richtextstyles wrapping
Robin Dunn
robin at alldunn.com
Mon Mar 24 15:56:51 PDT 2008
Petr Šimon wrote:
> Hello,
> I am very much interested in wrapping the richtextstyles and related
> stuff. I don't have much experience with swig, though. My initial
> attempt was only partially succesful. I am getting "No constructor
> defined" error.
>
> My .i file looks like this:
> //-----------------
> %{
> #include <wx/richtext/richtextstyles.h>
> %}
> //---------------------------------------------------------------------------
>
> %newgroup
> class wxRichTextStyleDefinition: public wxObject
> {
> public:
> wxRichTextStyleDefinition(const wxRichTextStyleDefinition& def);
> /// Default constructor
> wxRichTextStyleDefinition(const wxString& name = wxPyEmptyString);
> virtual ~wxRichTextStyleDefinition();
>
> /// Initialises members
> void Init();
>
> /// Copies from def
> void Copy(const wxRichTextStyleDefinition& def);
>
> /// Equality test
> bool Eq(const wxRichTextStyleDefinition& def) const;
> etc...
>
> My questions:
>
> 1. What am I doing wrong?
Not sure. You do have constructors defined there...
> 2. Is there a reason that the styles were not wrapped yet? Is it
> supposed to be tricky or something?
No, I just ran out of time and haven't gotten back to it yet.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-dev
mailing list