#! /usr/bin/env python import dbus, sys bus = dbus.SessionBus() remote_object = bus.get_object("org.gtk.glade.PingService", "/org/gtk/glade/PingObject") # you can either specify the dbus_interface in each call... reply = remote_object.HelloWorld ("First message", dbus_interface = "org.gtk.glade.PingInterface") print "Reply", reply # ... or create an Interface wrapper for the remote object iface = dbus.Interface (remote_object, "org.gtk.glade.PingInterface") response = iface.HelloWorld ("Second message") print "Response", response # introspection is automatically supported print remote_object.Introspect(dbus_interface="org.freedesktop.DBus.Introspectable")