[PyQt] setText from threading
Phil Thompson
phil at riverbankcomputing.com
Thu Feb 21 13:35:50 GMT 2008
On Thursday 21 February 2008, Reinaldo de Carvalho wrote:
> "threading" dont have postEvent-like then I must use Qthread?
You could use the standard Python Queue and in the main thread convert them to
events and post them locally - but using QThread is easier.
> QThread can be called with threding "target=" like argument? I will
> like start methods from PushButtons without freeze mainWidget when
> execute.
Just reimplement QThread.run() and call your simulate() function.
Phil
More information about the PyQt
mailing list