python pyqt5 sommeil

loop = QEventLoop()
QTimer.singleShot(2000, loop.quit)
loop.exec_()
Motionless Moose