PyQt and Threading to update a dialog?

Fabian Steiner lists at fabis-site.net
Mon Feb 20 17:07:49 EST 2006


Hello!

I have just written a MyDialog class which is derived from the orginial 
QDialog class. MyDialog only possesses a QLabel and a QPushButton. Now I 
would like to get the QLabel updated every second so that it displays 
the current time.
I think I will have to work with Threads in order to achieve this aim, 
but so far I didn't succeed in doing it because I couldn't find any 
examples.

Could anyone give me some hints or a piece of code?

Cheers,
Fabian Steiner



More information about the Python-list mailing list