mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-03 04:18:03 +02:00
2004-05-30 Seth Nickell <seth@gnome.org>
* python/examples/example-client.py: * python/examples/example-service.py: Take it back. Lists seem to work but they're broken in the test suite. Make the base examples use lists (works fine).
This commit is contained in:
parent
8a10d91cc0
commit
7dc64ab60a
3 changed files with 12 additions and 3 deletions
|
|
@ -1,3 +1,12 @@
|
|||
2004-05-30 Seth Nickell <seth@gnome.org>
|
||||
|
||||
* python/examples/example-client.py:
|
||||
* python/examples/example-service.py:
|
||||
|
||||
Take it back. Lists seem to work but they're broken
|
||||
in the test suite. Make the base examples use
|
||||
lists (works fine).
|
||||
|
||||
2004-05-30 Seth Nickell <seth@gnome.org>
|
||||
|
||||
* python/dbus_bindings.pyx.in:
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue