mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 14:50:11 +01:00
* 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).
12 lines
358 B
Python
12 lines
358 B
Python
#!/usr/bin/env python
|
|
|
|
import dbus
|
|
|
|
bus = dbus.SessionBus()
|
|
remote_service = bus.get_service("org.designfu.SampleService")
|
|
remote_object = remote_service.get_object("/SomeObject",
|
|
"org.designfu.SampleInterface")
|
|
|
|
hello_reply_list = remote_object.HelloWorld("Hello from example-client.py!")
|
|
|
|
print (hello_reply_list)
|