Notification using python
First, install win10toast by using pip
:
pip install win10toast
Then, import it:
from win10toast import ToastNotifier
Make a variable called toast
:
toast = ToastNotifier()
Show the toast
variable:
toast.show_toast("Notification","Notification body",duration=20,icon_path="icon.ico")
It should look something like this:
You can use Jason Chen's balloontip.py
for this. It's almost 50 lines of code so I won't be pasting it here.
Seems to work in Windows 10 as well.
Thanks to zack for finding this gem.
There is also Windows-10-Toast-Notifications on Github.
It works on windows 10 (with pywin32) and it allows several notifications.