[PyQt] Getting around Circualr references in SIP modules
Nate Reid
gnatty7 at hotmail.com
Thu Dec 9 22:17:31 GMT 2010
I am wrapping a set of components that are generally independent of each other, but not always.
For example, I have
///////
// foo module
%Module foo
%Import common.sip // Need to get a Blah
%Include SomeClass.sip
Blah* getTheBlah();
%MethodCode
sipRes = ...
%End
///////
// SomeClass.sip
class SomeClass
{
%TypeHeaderCode
...
};
///////
// common.sip
%Module common
%Import foo // Need SomeClass
class Blah{
...
SomeClass* getVal();
};
So, common and foo are different modules but they use classes from each other's modules. How do I get around this problem? Is there something I can do with ConsolidatedModule, or what not to still et these modules be build and installed independently but get around this circular reference / Import issue?
Thanks!
-Nate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20101209/25f03cd8/attachment-0001.html>
More information about the PyQt
mailing list