You should use PyGObject , which gives you access to the GNOME platform using GObject introspection. You can read the example in the Arch documentation for desktop notifications :
from gi.repository import Notify Notify.init ("Hello world") Hello=Notify.Notification.new ("Hello world", "This is an example notification.", "dialog-information")
A timeout value of 0 makes it constant (until the mouse is moved). For more information, refer to the PyGObject API Reference .
source share