[PyKDE] PyQt + multiple Interpreters

Christoph Wiedemann wiedeman at gmx.net
Fri Sep 17 10:17:09 BST 2004


Hi Phil,

> SIP v3.x is deprecated. Try v4 see what happens.

i've tried (sip 4.0.1) - and there are several issues arising from the fact
that i use embedded python interpreters. 

1. i've used to link my application against libqtcmodule.so, which has
disappeared (renamed to qt.so). I do this in order to use
sipForceConvertTo_QWidget in my embedding application.

What is the recommended way to get a QWidget pointer from a PyObject * in an
embedding application with sip 4.x ?

2. i couldn't use the new EnsureGIL methods (got a deadlock somewhere), so
i've used the -g switch while configuring PyQt.

My main question still remains: Is there a way to control the ThreadState
PyQt acquires when calling virtual python functions? The situation is as
follows: i have two or more PyInterpreters in my application. I want to
provide a shell widget for each interpreter, which is most simply done with
PyCute. But when i type print "Hello", Hello pops up in incorrect places
(the wrong shell widget / or even in the application stdout). 

Any ideas?

Thanks in advance,
Christoph




More information about the PyQt mailing list