QTimer - making timers in PyQt4
Description of timers available in PyQt4QTimer class allows applications to do something after certain amount of time. You can make constant timers that run forever, or singleShot timers that run only once. Both timers are shown in this example: Where the UI has two buttons and two progressbars:
Launching the constant timer will result in increasing after 1 second (1000 milliseconds) QProgressBar value. For the singleShot timer the value increase will happen only once. Constant timers use signal-slot system emitting timeout() signal. SingleShot timers are made using singleShot(time, receiver) method, where receiver is a method of our class, that will be run after specified amount of time.
You can download the example.