Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pynotify
- def notificate():
- n = pynotify.Notification("Hello World", "Simon says HELLO", "notification-message-im")
- n.set_urgency(pynotify.URGENCY_NORMAL)
- n.set_timeout(200)
- if not n.show():
- print "Failed to display notification"
- sys.exit(1)
- if __name__ == '__main__':
- pynotify.init( "test" )
- notificate()
Add Comment
Please, Sign In to add comment