[PyKDE] Trouble binding code with SIP

Phil Thompson phil at riverbankcomputing.co.uk
Mon Oct 13 19:07:01 BST 2003


On Monday 13 October 2003 6:00 pm, Aurélien Gâteau wrote:
> Le Lundi 13 Octobre 2003 18:50, Phil Thompson a écrit :
> > I said put the %HeaderCode section in the class definition.
> >
> > I was also going to say that you probably also need to add a %HeaderCode
> > section to the DolSphinx namespace that #includes dolsphinx.h - but
> > looking quickly at the parser I'm not sure it allows you to. If so then
> > that's something I need to fix.
>
> Just added the following:
>
> ---
> %HeaderCode
> #include <dolsphinx.h>
> %End
> ---
>
> After the "class Listener : QObject {" line. Sip parses it correctly, but
> compilation fails in the same place.

That's expected. But if you put it in the DolSphinx namespace it probably 
wouldn't parse.

Phil




More information about the PyQt mailing list