summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/examples/example-client.py4
-rw-r--r--python/examples/example-service.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/python/examples/example-client.py b/python/examples/example-client.py
index c1393ecc..b3b22f56 100644
--- a/python/examples/example-client.py
+++ b/python/examples/example-client.py
@@ -7,6 +7,6 @@ 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!")
+hello_reply_list = remote_object.HelloWorld("Hello from example-client.py!")
-print (hello_reply)
+print (hello_reply_list)
diff --git a/python/examples/example-service.py b/python/examples/example-service.py
index d1460802..ceb7f11d 100644
--- a/python/examples/example-service.py
+++ b/python/examples/example-service.py
@@ -9,7 +9,7 @@ class SomeObject(dbus.Object):
def HelloWorld(self, hello_message):
print (hello_message)
- return "Hello from example-service.py"
+ return ["Hello", "from example-service.py"]
session_bus = dbus.SessionBus()
service = dbus.Service("org.designfu.SampleService", bus=session_bus)