Guest User

Untitled

a guest
Jan 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import pynotify
  2.  
  3. def notificate():
  4. n = pynotify.Notification("Hello World", "Simon says HELLO", "notification-message-im")
  5. n.set_urgency(pynotify.URGENCY_NORMAL)
  6. n.set_timeout(200)
  7. if not n.show():
  8. print "Failed to display notification"
  9. sys.exit(1)
  10.  
  11. if __name__ == '__main__':
  12. pynotify.init( "test" )
  13. notificate()
Add Comment
Please, Sign In to add comment