0
点赞
收藏
分享

微信扫一扫

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

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

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

安装**​​win10toast​​**

pip install win10toast

使用示例

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)

效果展示

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


举报

相关推荐

0 条评论