add examples
[platform/upstream/dbus.git] / python / examples / example-client.py
1 #!/usr/bin/env python
2
3 import dbus
4
5 bus = dbus.Bus()
6 remote_service = bus.get_service("org.designfu.SampleService")
7 remote_object = remote_service.get_object("/SomeObject",
8                                           "org.designfu.SampleInterface")
9
10 hello_reply = remote_object.HelloWorld("Hello from example-client.py!")
11
12 print (hello_reply)