send notification in python code example
Example: send notification python
# Ubuntu
import subprocess
def sendmessage(message):
subprocess.Popen(['notify-send', message])
# Windows 10 (python 2 is now depricated!)
# pip/3 install win10toast
from win10toast import ToastNotifier
def send_notification(title, message):
notifier = ToastNotifier()
notifier.show_toast(title, message)