当我们要让程序定期去执行某函数的时候,QTimer就派上用场了,比如一个游戏程序, ... setText('Start') self.timer.stop() def update_func(self): self.step += 1 ...
確定! 回上一頁