问题描述
我正在为 Windows 开发一个小托盘图标应用程序,我需要显示非侵入性的视觉通知,类似于您在 MSN Messenger 或任何其他 IM 应用程序中收到新消息时出现的通知.
I'm developing a small tray-icon application for Windows and I need to display non-intrusive visual notifications similar to those that appear when you receive a new message in MSN Messenger or any other IM application.
我查看了 Snarl,但它似乎是我需要的一个单独的应用程序安装.我想要一些可以与我的应用程序捆绑在一个安装程序中的东西,一个库.
I have looked at Snarl, but it seems to be a separate application that I need to install. I want something that could be bundled with my application in one installer, a library.
你推荐哪一个?
Python 支持是一个巨大的优势.
Python support is a huge plus.
推荐答案
你可以通过依赖一个 GUI 库来实现.
You can do it by depending on a GUI library.
例如,使用 PyQt,这是可能的:
For example, with PyQt,it is possible :
QSystemTrayIcon 示例(在 C++ 中),容易适应python)
Example of QSystemTrayIcon (in C++, easy to adapt to python)
这篇关于Windows 通知库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!