addWidget(button) timer = QTimer() # 每次計時結束,觸發setTime ... def timeStop(): timer.stop() print("執行結束用時", lcdNumber.value()) ...
確定! 回上一頁