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

一、场景

    运行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

posted @ 2023-06-13 15:42  代码诠释的世界  阅读(154)  评论(0编辑  收藏  举报