使用Python在Windows 10上显示通知信息


此功能的实现主要使用 python 第三方库 win10toast 

https://github.com/jithurjacob/Windows-10-Toast-Notifications

1. 安装win10toast 

pip install win10toast 

2. 使用示例

from win10toast import ToastNotifier
toast = ToastNotifier()
toast.show_toast(title="This is a title", msg="This is a message",
                 icon_path=r"C:\Program Files\Internet Explorer\images\bing.ico", duration=10)

3. 效果展示

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM