summaryrefslogtreecommitdiffstats
path: root/python/examples/example-client.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/examples/example-client.py')
-rw-r--r--python/examples/example-client.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/python/examples/example-client.py b/python/examples/example-client.py
new file mode 100644
index 00000000..0038b2db
--- /dev/null
+++ b/python/examples/example-client.py
@@ -0,0 +1,12 @@
+#!/usr/bin/env python
+
+import dbus
+
+bus = dbus.Bus()
+remote_service = bus.get_service("org.designfu.SampleService")
+remote_object = remote_service.get_object("/SomeObject",
+ "org.designfu.SampleInterface")
+
+hello_reply = remote_object.HelloWorld("Hello from example-client.py!")
+
+print (hello_reply)