[PyQt] Question about QTimer and QThreads

V. Armando Sole sole at esrf.fr
Mon Oct 29 07:40:38 GMT 2007


Hello Darren,

At 19:07 28/10/2007 -0400, Darren Dale wrote:
>  Anyway, changing my example to
>use a.show() doesn't work, the thread's event loop is not started. I don't
>see any recent discussion on the list that seems relevent.

Please add the method:

     def run(self):
         self.timer.start(20)

to your Dispatcher class (remove self.timer.start from the __init__) and 
call a.start() to start your thread and not a.exec_().

Best regards,

Armando





More information about the PyQt mailing list