Minimise Python to System Tray and Generate Notifications? [duplicate]

╄→尐↘猪︶ㄣ 提交于 2021-02-18 16:43:58

问题


I've had a look around but haven't been able to find anything to get close to doing what I want.

I want to make my Python script launch as a minimised system tray application or have the ability to minimise to system tray and also have the ability to make system tray notifications

Any one have any ideas/libraries or examples?

Thanks - Hyflex


回答1:


I would start by reading this.

Then as our friends here suggested in the comments , you could use SysTrayIcon.py to show your application in a system tray .

As of displaying notifications you should check Win32 Python Extensions which has an example in Lib\site-packages\win32\demos\win32gui_menu.py . that should help you get started .



来源:https://stackoverflow.com/questions/17200167/minimise-python-to-system-tray-and-generate-notifications

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!