GUI (PyQt) & thread problem

Kristian Nylund krnylund at msn.com
Mon Feb 25 03:20:42 EST 2002


"K. Wojas" <usenet at wojas.vvtp.tudelft.nl> wrote in message news:<a5c8a2$r5e$1 at news.tudelft.nl>...
> 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

Thank you for your reply. Do you have any pointers on how to implement
this kind of functionality, i.e. when something happens in the worker
thread (not GUI related), the GUI needs to be updated. Is it at all
possible?

Thanks,

Kristian



More information about the Python-list mailing list