An easy-to-use Python library for displaying Windows 10 Toast Notifications which is useful for Windows GUI development.
pip install git+git://github.com/nuno-andre/Windows-10-Toast-Notifications@master#egg=win10toast
Installing Pillow
will add automatic conversion from PIL supported images to ico:
pip install git+git://github.com/nuno-andre/Windows-10-Toast-Notifications@master#egg=win10toast[pillow]
pywin32
setuptools
import time
from win10toast 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)
The library also works with nonWin10-OSes, so feel free to use it on Windows 7 as well...