[PyKDE] embedding SIP wrapped library...

Bjorn Pettersen BPettersen at narex.com
Wed May 29 01:02:01 BST 2002


I'm trying to embed Python, which is working nicely, however I also want
to access objects from my SIP wrapped library from Python. I tried the
following code:

  int main() {
    Py_Initialize();
    initlibsip();
    initlibNrxDataTypesc();

    NDate val(2002, 5, 28);
    PyObject* val = sipMapCppToSelf(&val, sipClass_NDate);
    ...

but sipClass_NDate is NULL. I'm guessing I'm forgetting to call an
initialization function, but I can't figure out which...

-- bjorn




More information about the PyQt mailing list