【pyqt】报错TypeError: decorated slot has no signature compatible with RecorderPlayerProxy.sig_mode_update[object]

发布时间 2023-06-13 15:46:37作者: 代码诠释的世界

一、场景

    运行pyqt报错TypeError: decorated slot has no signature compatible with RecorderPlayerProxy.sig_mode_update[object]

 

二、代码

    @Slot(int)
    def update_mode(self, mode):
        ......

 

三、解决方法

    将int去除即可

 

 

参考链接:

python - Sending signals to Thread function in PyQt5 leads to TypeError of decorated slot - Stack Overflow