timer = QtCore.QTimer(self) timer.timeout.connect(self.showTime) timer.start(1000) self.showTime() self ...
www.cnblogs.com