QSignalBlocker

class PyQt5.QtCore.QSignalBlocker

C++ documentation