Skip to content

Instantly share code, notes, and snippets.

@mattjmorrison
Created April 10, 2013 02:43
Show Gist options
  • Save mattjmorrison/5351337 to your computer and use it in GitHub Desktop.
Save mattjmorrison/5351337 to your computer and use it in GitHub Desktop.
>>> import pynotify
>>> pynotify.init("Test")
True
>>> pynotify.Notification("T", "B", "dialog-warning").show()
True
>>> pynotify.Notification("T", "B", "dialog-info").show()
True
>>> pynotify.Notification("T", "B", "dialog-error").show()
True
>>> pynotify.Notification("T", "B", "dialog-debug").show()
True
>>> pynotify.Notification("T", "B", "dialog").show()
True
>>> pynotify.Notification("T", "This\nIs\nThe\nBody!", "dialog-error").show()
True
>>> pynotify.Notification("T", "This\nIs\nThe\nBody!", "dialog-info").show()
True
>>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment