diff options
Diffstat (limited to 'python/examples/example-client.py')
-rw-r--r-- | python/examples/example-client.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/python/examples/example-client.py b/python/examples/example-client.py index 0270ed6c..7439e6bd 100644 --- a/python/examples/example-client.py +++ b/python/examples/example-client.py @@ -3,15 +3,14 @@ import dbus bus = dbus.SessionBus() -remote_service = bus.get_service("org.designfu.SampleService") -remote_object = remote_service.get_object("/SomeObject", - "org.designfu.SampleInterface") +remote_object = bus.get_object("org.designfu.SampleService", "/SomeObject") +iface = dbus.Interface(remote_object, "org.designfu.SampleInterface") -hello_reply_list = remote_object.HelloWorld("Hello from example-client.py!") +hello_reply_list = remote_object.HelloWorld("Hello from example-client.py!", dbus_interface = "org.designfu.SampleInterface") -hello_reply_tuple = remote_object.GetTuple() +hello_reply_tuple = iface.GetTuple() -hello_reply_dict = remote_object.GetDict() +hello_reply_dict = iface.GetDict() print (hello_reply_list) @@ -19,3 +18,4 @@ print str(hello_reply_tuple) print str(hello_reply_dict) +print remote_object.Introspect(dbus_interface="org.freedesktop.DBus.Introspectable") |