|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
self.activated.connect(self.iconClied)
# 把鼠标点击图标的信号和槽连接
# self.messageClicked.connect(self.mClied)
# 把鼠标点击弹出消息的信号和槽连接
self.setIcon(QIcon("icon.ico"))
self.icon = self.MessageIcon()
# 设置图标
报错:
Traceback (most recent call last):
File "D:\Users\SYL\project\SYLOS_Safe\main.py", line 391, in <module>
window = MainWindow()
File "D:\Users\SYL\project\SYLOS_Safe\main.py", line 215, in __init__
ti = TrayIcon(self)
File "D:\Users\SYL\project\SYLOS_Safe\main.py", line 135, in __init__
self.other()
File "D:\Users\SYL\project\SYLOS_Safe\main.py", line 165, in other
self.icon = self.MessageIcon()
TypeError: EnumMeta.__call__() missing 1 required positional argument: 'value'
进程已结束,退出代码1
self.icon = self.MessageIcon() 这一句的 MessageIcon 要传一个参数
|
|