1

I'm trying to make a program that opens a window every 10 seconds and waits for the user to close it, in order to restart counting the next 10 seconds.

I have the following code:

class Window(QtGui.QWidget):
def __init__(self):
    super().__init__()
    self.setGeometry(100, 100, 400, 300)
    self.setWindowTitle('Probando...')

app = QtGui.QApplication([])
window = Window()
window.show()
app.exec_()

The big question I have, is how could I make a loop where I can reinstanciate Window every 10 seconds.

  • 1
    Possible duplicate of [PyQt4 - creating a timer](http://stackoverflow.com/questions/32362340/pyqt4-creating-a-timer) – John Zwinck May 23 '16 at 12:20

0 Answers0