dbus - >Notification

Code-Stücke können hier veröffentlicht werden.
Antworten
XT@ngel
User
Beiträge: 255
Registriert: Dienstag 6. August 2002, 14:36
Kontaktdaten:

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
Antworten