Skip to content

Instantly share code, notes, and snippets.

View dzautner's full-sized avatar

Lord Daniel Zautner dzautner

View GitHub Profile
@JokerQyou
JokerQyou / osx_notify.py
Last active January 2, 2018 12:30 — forked from instagrim-dev/notify.py
A python lib for sending notification on OS X
# coding: utf-8
from Foundation import NSUserNotification
from Foundation import NSUserNotificationCenter
from Foundation import NSUserNotificationDefaultSoundName
def notify(message, title='Notification', sound=False):
notification = NSUserNotification.alloc().init()
notification.setTitle_(title)
notification.setInformativeText_(message)
if sound: