[wxpython-dev] richtextstyles wrapping

Petr Šimon sim at klubko.net
Sun Mar 23 01:51:45 PDT 2008


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?
2. Is there a reason that the styles were not wrapped yet? Is it 
supposed to be tricky or something?


Thaks for help
Petr


More information about the wxpython-dev mailing list