dbus/python/examples/example-client.py
Seth Nickell dcc037cc1f 2003-09-25 Seth Nickell <seth@gnome.org>
* python/dbus.py:
	* python/dbus_bindings.pyx.in:

	Handle return values.

	* python/examples/example-client.py:
	* python/examples/example-service.py:

	Pass back return values from the service to the client.
2003-09-25 08:46:39 +00:00

12 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)