Skip to content

Instantly share code, notes, and snippets.

@niktto
Created June 23, 2012 18:23
Show Gist options
  • Save niktto/2979303 to your computer and use it in GitHub Desktop.
Save niktto/2979303 to your computer and use it in GitHub Desktop.
Sample notification
In [1]: import pynotify
In [2]: pynotify.init("Sample Application Title")
Out[2]: True
In [3]: n = pynotify.Notification("Title", "Message")
In [4]: n.add_action("buttonid", "Happy Button :)", lambda x: x)
In [5]: n.show()
Out[5]: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment