[PyQt] Calling slots in a QThread?

Arnold Krille arnold at arnoldarts.de
Thu Aug 13 07:58:32 BST 2009


Hi,

On Thursday 13 August 2009 00:15:13 Lukas Hetzenecker wrote:
> But If I call long-running funtions in a run() method everything works as
> expected.

Are these long-running functions implemented in python? Otherwise they will 
release the GIL and your gui becomes snappy again.

> > 2) Use processes instead of threads. Then you can run several instances
> > of the python interpreter at the same time.
> This seems too complicated for this simple task.

A "simple" task that really needs threads?

Looking at my students learning python/programming, I would say using threads 
is already pretty complicated and not needed for a simple task.
(Of course if you get to know them, it becomes easier. But then you also know 
about starting processes and communicate via shared-memory/named-pipes/etc.)

Have fun,

Arnold
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20090813/77c16c60/attachment.bin


More information about the PyQt mailing list