On Thursday 16 June 2011 17:31:13 kungfuelmosan wrote:
> Hey Hugo,
>
> Yep I'm calling :
>
> if (!Shiboken::importModule("PySide.QtCore",
> &SbkPySide_QtCoreTypes)) {
> PyErr_SetString(PyExc_ImportError,"could not import
> PySide.QtCore");
> return;
> }
>
> if (!Shiboken::importModule("PySide.QtGui",
> &SbkPySide_QtGuiTypes)) {
> PyErr_SetString(PyExc_ImportError,"could not import
> PySide.QtGui");
> return;
> }
>
> In my extension modules init function and I have these globally
> defined in my .cc file aswell :
>
> #include <pyside_qtgui_python.h>
> PyTypeObject** SbkPySide_QtCoreTypes;
> PyTypeObject** SbkPySide_QtGuiTypes;
>
> Does that look right to you?Yes it does, nothing wrong. Did you call Py_Initialize() before all this? or the python interpreter was already initialized by someone? Regards.
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.pyside.org/listinfo/pyside
