← Go Back

How to Send a Desktop Notification on Windows

First you need to install the win10toast package by running:

pip install win10toast

Then run the following code:

from win10toast import ToastNotifier
toaster = ToastNotifier()
toaster.show_toast(
"Notification title",
"Notification message",
duration=10 # In seconds
)


windows notifications


🐍 You might also find interesting: