← Go Back
Then run the following code:
How to Send a Desktop Notification on Windows
First you need to install thewin10toast
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
)
🐍 You might also find interesting: