From dcc037cc1f008eae9f6a35aca5b1935459e44647 Mon Sep 17 00:00:00 2001 From: Seth Nickell Date: Thu, 25 Sep 2003 08:46:39 +0000 Subject: 2003-09-25 Seth Nickell * 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. --- python/examples/example-service.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'python/examples/example-service.py') diff --git a/python/examples/example-service.py b/python/examples/example-service.py index eb55af44..88f6b500 100644 --- a/python/examples/example-service.py +++ b/python/examples/example-service.py @@ -6,10 +6,11 @@ import gtk class MyObject(dbus.Object): def __init__(self): service = dbus.Service("org.designfu.SampleService") - dbus.Object("/MyObject", [self.HelloWorld], service) + dbus.Object("/SomeObject", [self.HelloWorld], service) - def HelloWorld(self, arg1): - print ("Hello World!: %s" % (arg1)) + def HelloWorld(self, hello_message): + print (hello_message) + return "Hello from example-service.py" object = MyObject() -- cgit