def runTimer(self,obj):
self.Object=obj
self.myTimer = QtCore.QTimer() # instantiate a new timer and store a reference to it in 'myTimer'
self.myTimer.setInterval(1000) # set the delay to 1 second
self.myTimer.timeout.connect(self.someOtherFunction) # once the timer runs out, run someOtherFunction
self.myTimer.start()
评论列表
文章目录