要使用定时器,需要先创建一个QTimer实例,将其timeout信号连接到相应的槽,并调用 start() 。 ... import sys from PyQt5 import QtCore from PyQt5.
確定! 回上一頁