You can use a QTimer for that;
def __init__(self): self.timer = QtCore.QTimer(interval=1000) self.timer.timeout.connect(self.update) self.timer.start() def update(self): print("Hello world")