[PyQt] QThread not exiting

Kerri Reno kreno at yumaed.org
Fri Oct 19 20:52:51 BST 2007


Andreas,

Thank you so much!

Kerri

On 10/19/07, Andreas Pakulat <apaku at gmx.de> wrote:
>
> On 19.10.07 11:07:34, Kerri Reno wrote:
> > OK, I took out all the GUI elements, but I still can't get the QThread
> to
> > exit:
>
> Sorry, didn't notice before. You're actually not starting a new thread.
> You call "self.run()" from the constructor of the QThread subclass, but
> the constructor is executed inside the GUI thread. Thus run() runs in
> the GUI thread and the constructor of BusyThread never returns. The
> proper API to start a QThread is using QThread.start()
>
> Andreas
>
> --
> You get along very well with everyone except animals and people.
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



-- 
Yuma Educational Computer Consortium
Compass Development Team
Kerri Reno
kreno at yumaed.org      (928) 502-4240
.·:*¨¨*:·.   .·:*¨¨*:·.   .·:*¨¨*:·.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20071019/9c1a66cd/attachment.html


More information about the PyQt mailing list