[PyQt] Sip: How to properly include from other files?

Phil Thompson phil at riverbankcomputing.co.uk
Thu May 17 15:40:57 BST 2007

On Thursday 17 May 2007 3:15 pm, Jason Hihn wrote:
> I have a class I am trying to wrap, aaa, it is derived from bbb. Bbb has
> its own .h and .sip files. How do I properly get bbb into aaa's sip file so
> that it is defined? I tried a %include, but then it errors on line 1 of
> bbb.h, because it is #ifndef .

In aaa.sip have...

%Include bbb.sip

However the normal convention is to have a mod.sip file which %Includes each 
of the class .sip files. Then run sip over the mod.sip file.


More information about the PyQt mailing list