[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] Wrap C++ classes using SIP
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2012-05-19 8:53:58
Message-ID: 7e9224dc264b35594c3e4bf670992190 () localhost
[Download RAW message or body]

On Fri, 18 May 2012 18:13:37 -0400, Jayesh Chaudhary <aashishcy@gmail.com>
wrote:
> Folks,
> 
> I am a newbie to SIP. I am trying to wrap couple of classes and it was
> going good till I hit this problem.
> 
> So here is my use case:
> 
> Lets say I have two classes Foo and Bar. I already have Bar wrapped (not
> via SIP though) and now I am trying to wrap Foo using SIP.
> 
> My Foo looks like this:
> 
> Class Foo: public Bar
> {
> };
> 
> 
> I don't want to wrap Bar again with SIP since this will trigger a chain
> reaction. In my SIP I have done something like this:
> 
> %Module FooMod
> 
> class Foo: Bar
> {
> %TypeHeaderCode
> #include<Foo.h>
> %End
> ...
> ...
> };
> 
> But then if I don't wrap Bar, I get Bar undefined. Is there a way around
> it?

No, you can't mix binding tools in the same class hierarchy.

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic