Created
June 23, 2012 18:23
-
-
Save niktto/2979303 to your computer and use it in GitHub Desktop.
Sample notification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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