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",
threaded = True,
)
It should look something like this: