[PyQt] Waiting For A Signal

Marc Thomas jazzyflute at gmail.com
Wed May 21 14:47:44 BST 2014

Hey Robert,

You are going to want to loop into threading. Essentially what is happening
right now is that your main thread (GUI thread) is kicking off a process
that runs for a while. While that process is happening, nothing else can
happen. If you multi-thread your application, you can kick that process off
in the background thus not locking up your GUI.

Here is an example of PyQt4 multi-threading I have written:
This is good tutorial explaining the different components of
multi-threading with PyQT:

Hope this helps!

On Tue, May 20, 2014 at 12:30 PM, Robert Kent <rob at gulon.co.uk> wrote:

> Hi All,
> As the subject line of suggests, I want to wait for a signal to be emitted
> (block essentially), but I want to do this whilst keeping the GUI alive. I
> have tried both creating my own event loop and re-implelmenting libqxt's
> QxtSignalWaiter, but my signal of choice is never caught until after either
> the event loop has quit of the signal waiter has stopped waiting. I'm
> guessing this is something to do with the way the event loop is executed in
> PyQt (or I'm doing something very wrong ;o). Has anyone had any success or
> experience with doing this in Python (I've done it before in C++).
> Thanks, Rob
> _______________________________________________
> PyQt mailing list    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Website <http://mathomaste.ch>   :
 :   Twitter <https://twitter.com/mathomastech>   :
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20140521/5002669d/attachment.html>

More information about the PyQt mailing list