Define a slot function with two parameters through the @PyQt4.QtCore.pyqtSlot(str, str) decoration method
The decomposition is messageSlot = QtCore.pyqtSlot(str, str)(messageSlot)
First, QtCore.pyqtSlot(str, str) returns a function, assuming A
Then, the function runs A(messageSlot)
Define a slot function with two parameters through the @PyQt4.QtCore.pyqtSlot(str, str) decoration method
The decomposition is messageSlot = QtCore.pyqtSlot(str, str)(messageSlot)
First, QtCore.pyqtSlot(str, str) returns a function, assuming A
Then, the function runs A(messageSlot)
Just understand it as
messageSlot = QtCore.pyqtSlot(str, str)(messageSlot)
That’s fine.