一个易于使用的Python库,用于显示windows10toast通知
wintoast的Python项目详细描述
Windows Toast通知
安装
pip install wintoast
要求
安装pywin32
^{pr2}$示例
from wintoast import ToastNotifier
toaster = ToastNotifier()
toaster.show_toast("Hello World!!!",
"Python is 10 seconds awsm!",
icon_path="custom.ico",
duration=10)
toaster.show_toast("Example two",
"This notification is in it's own thread!",
icon_path=None,
duration=5,
threaded=True)
# Wait for threaded notification to finish
while toaster.notification_active(): time.sleep(0.1)
- 项目
标签: