Seite 1 von 1

dbus - >Notification

Verfasst: Freitag 17. März 2006, 14:44
von XT@ngel

Code: Alles auswählen

import gtk
import dbus
bus = dbus.SessionBus()
obj =bus.get_object('org.freedesktop.Notifications', '/org/freedesktop/Notifications')
notif = dbus.Interface(obj, 'org.freedesktop.Notifications')
id = notif.Notify("notifname", 0, gtk.STOCK_COPY, "Hallo", "bla",[],{}, 0)

#UINT32 org.freedesktop.Notifications.Notify (STRING app_name, UINT32 replaces_id, STRING app_icon, STRING summary, STRING body, ARRAY actions, DICT hints, INT32 expire_timeout);

#http://www.galago-project.org/specs/notification/0.9/x408.html