QTimer.singleShot(1000, loop.quit) #1000 ms loop.exec_() if ... import sys import time from PyQt5 import QtWidgets, QtCore from PyQt5.
確定! 回上一頁