要使用定时器,需要先创建一个QTimer实例,将其timeout信号连接到相应的 ... setEnabled(True) def endTimer(self): #关闭定时器self.timer.stop() ...
確定! 回上一頁