使用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