一个易于使用的python库,用于显示windows 10 toast通知
win10toast的Python项目详细描述
#windows 10 toast通知
一个易于使用的python库,用于显示windows10toast通知,这对windows gui开发非常有用。
![O7JA4 1](https://cloud.githubusercontent.com/assets/7101452/19763806/75f71ba4-9c5d-11e6-9f16-d0d4bf43e63e.png)
[![自由和开放源码软件状态](https://app.fossa.io/api/projects/git%2bgithub.com%2fjithurjacob%2fwindows-10-toast-notifications.svg?type=shield)(https://app.fossa.io/projects/git%2bgithub.com%2fjithurjacob%2fwindows-10-toast-notifications?ref=badge_shield)
## Installation
```
pip install win10toast
```
## Requirements
### Installation of pywin32
```
pypiwin32
setuptools
```
## Example
```
from win10toast import ToastNotifier
toaster = ToastNotifier()
toaster.show_toast("Hello World!!!”,
“python是10秒awsm!”,
icon_path=“custom.ico”,
持续时间=10)
toaster.show_toast(“示例二”,
“此通知在自己的线程中!”,
icon_path=none,
duration=5,
threaded=true)
等待线程通知完成
而toaster.notification_active():time.sleep(0.1)
`````
[自由和开放源码软件状态](https://app.fossa.io/api/projects/git%2bgithub.com%2fjithurjacob%2fwindows-10-toast-notifications.svg?type=large)(https://app.fossa.io/projects/git%2bgithub.com%2fjithurjacob%2fwindows-10-toast-notifications?ref=徽章大)
一个易于使用的python库,用于显示windows10toast通知,这对windows gui开发非常有用。
![O7JA4 1](https://cloud.githubusercontent.com/assets/7101452/19763806/75f71ba4-9c5d-11e6-9f16-d0d4bf43e63e.png)
[![自由和开放源码软件状态](https://app.fossa.io/api/projects/git%2bgithub.com%2fjithurjacob%2fwindows-10-toast-notifications.svg?type=shield)(https://app.fossa.io/projects/git%2bgithub.com%2fjithurjacob%2fwindows-10-toast-notifications?ref=badge_shield)
## Installation
```
pip install win10toast
```
## Requirements
### Installation of pywin32
```
pypiwin32
setuptools
```
## Example
```
from win10toast import ToastNotifier
toaster = ToastNotifier()
toaster.show_toast("Hello World!!!”,
“python是10秒awsm!”,
icon_path=“custom.ico”,
持续时间=10)
toaster.show_toast(“示例二”,
“此通知在自己的线程中!”,
icon_path=none,
duration=5,
threaded=true)
等待线程通知完成
而toaster.notification_active():time.sleep(0.1)
`````
[自由和开放源码软件状态](https://app.fossa.io/api/projects/git%2bgithub.com%2fjithurjacob%2fwindows-10-toast-notifications.svg?type=large)(https://app.fossa.io/projects/git%2bgithub.com%2fjithurjacob%2fwindows-10-toast-notifications?ref=徽章大)