Gnome Notifications
Scott Robinson
scott_ubuntu at scott.tranzoa.net
Tue Feb 21 03:38:24 GMT 2006
On Mon, Feb 20, 2006 at 09:36:16PM -0500, Lukas Sabota wrote:
> That's great! That is just what I was looking for. Do you know if
> there are python bindings for libnotify?
>
> God bless,
> Lukas
No, use D-Bus. For example:
>>> import dbus
>>> bus = dbus.SessionBus()
>>> notify_service = bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
>>> notify_interface = dbus.Interface(notify_service, 'org.freedesktop.Notifications')
>>> notify_interface.Notify('program name', 0, '', 'Title', 'Message', [], {}, -1)
Check dbus.freedesktop.org for the interface documentation.
Scott.
--
http://quadhome.com/ - Personal webpage
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20060220/3e2a0a5a/attachment.pgp
More information about the ubuntu-devel
mailing list