Python Pyqt5 Sleep

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