GUI (PyQt) & thread problem

K. Wojas usenet at wojas.vvtp.tudelft.nl
Sun Feb 24 21:42:11 EST 2002


Kristian Nylund wrote:
> Can someone tell me what the problem is with the following program, as it
> hangs. I'm pretty sure there's some inherent design-flaw involved, but
> I'm not familiar enough with threads or GUI-programming to know what it
> could be.
> 
> I've also tried modyfing the program to use PYSIGNALs instead of passing
> the caller to the thread, but the results were the same.

Never use the Qt toolkit from 2 threads. You can only use the worker thread 
for non-GUI stuff. The Qt toolkit isn't threadsafe.

Regards,

Konrad Wojas



More information about the Python-list mailing list