|

楼主 |
发表于 2024-1-20 17:34:33
|
显示全部楼层
Traceback (most recent call last):
File "F:/AllCoding/mycode/pythoncode/CapsWriter.py", line 21, in <module>
icon = pystray.Icon("name", image, "Title", menu)
File "F:\AllCoding\py\python312\Lib\site-packages\pystray\_win32.py", line 32, in __init__
super(Icon, self).__init__(*args, **kwargs)
File "F:\AllCoding\py\python312\Lib\site-packages\pystray\_base.py", line 89, in __init__
else Menu(*menu) if menu is not None \
TypeError: pystray._base.Menu() argument after * must be an iterable, not MenuItem
|
|