[PyKDE] QThread problem

Phil Thompson phil at river-bank.demon.co.uk
Fri Dec 20 15:10:01 GMT 2002


On Friday 20 December 2002 1:55 pm, Steven Scott wrote:
> Quoting Michael Lauer <mickey at tm.informatik.uni-frankfurt.de>:
> > You forgot to call the constructor of QThread.
>
> ouch, I'm dumb.
>
> speaking on threading & PyQt in general, can I assume that python threads
> and PyQt don't mix?  (sorry if this has been discussed before).  when I try
> to use python threads, and a thread performs a callback to the main thread,
> I get an Xlib error, unexpected asynchronous message (or something close to
> that).

Read the relevant section in the PyQt documentation. It describes the 
circumstances in which you can mix them.

Phil




More information about the PyQt mailing list