使用pythonq的python中QLabel上的可单击事件

2024-10-02 18:19:01 发布

您现在位置:Python中文网/ 问答频道 /正文

我读过this,想用另一个问题来评论one of the answers。所以我想在Teamspeak 3中使用my scriptfor pyTson创建一个可点击的标签

python 07.11.2016 14:16:48 pyTSon.PluginHost.onMenuItemEvent Error Error calling onMenuItemEvent of python plugin Better Server Browser: Traceback (most recent call last): File "C:/Users/blusc_000/AppData/Roaming/TS3Client/plugins/pyTSon/scripts\ts3plugin.py", line 337, in onMenuItemEvent plugin.onMenuItemEvent(schid, atype, locid, selectedItemID) File "C:/Users/blusc_000/AppData/Roaming/TS3Client/plugins/pyTSon/scripts\serverBrowser.py", line 62, in onMenuItemEvent self.dlg = ServersDialog(self) File "C:/Users/blusc_000/AppData/Roaming/TS3Client/plugins/pyTSon/scripts\serverBrowser.py", line 136, in __init__ self.setupList() File "C:/Users/blusc_000/AppData/Roaming/TS3Client/plugins/pyTSon/scripts\serverBrowser.py", line 153, in setupList self.pageLabel.mousePressEvent = self.on_pageLabel_clicked AttributeError: Slot 'mousePressEvent' can not be overwritten on QLabel object


Tags: inpyselflinescriptspluginsroamingusers