mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2025-12-22 21:50:09 +01:00
13 lines
341 B
Python
13 lines
341 B
Python
|
|
#!/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)
|