Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This program handles notifications for secure.py. It's just a test. Let's see
- # if it actually works. :)
- import pygtk
- pygtk.require('2.0')
- import pynotify
- import sys
- def notification(msg):
- print "in notification before init...."
- if not pynotify.init("Notification"):
- sys.exit(1)
- print "in notification.py --- ", msg
- n = pynotify.Notification("Notification", msg)
- print "\n\n After setting n\n\n\n"
- if not n.show():
- print "Failed to send notificatoin."
- sys.exit(1)
Advertisement
Add Comment
Please, Sign In to add comment