Python interface to DBus notifications
This is a pure-python replacement for notify-python, using python-dbus to communicate with the notifications server directly. It’s compatible with Python 2 and 3, and its callbacks can work with Gtk 3 or Qt 4 applications.
To use it, first call notify2.init('app name'), then create and show notifications:
n = notify2.Notification("Summary", "Some body text", "notification-message-im" # Icon name ) n.show()
API docs are available on ReadTheDocs, or you can refer to docstrings.
Based on the notifications spec at: http://developer.gnome.org/notification-spec/
There are a few differences from pynotify you should be aware of:
Several pynotify functions, especially getters and setters, are only supported for compatibility. You are encouraged to use more direct, Pythonic alternatives.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|notify2-0.3.1-py2.py3-none-any.whl (8.0 kB) Copy SHA256 Checksum SHA256||py2.py3||Wheel||Apr 28, 2017|
|notify2-0.3.1.tar.gz (17.8 kB) Copy SHA256 Checksum SHA256||–||Source||Apr 28, 2017|