QStateMachine

class PyQt5.QtCore.QStateMachine

C++ documentation