From 0469cdb2c7a504f4d47a08cc3c482f26babb2cc4 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 30 Sep 2003 02:41:13 +0000 Subject: add examples --- python/examples/example-client.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 python/examples/example-client.py (limited to 'python/examples/example-client.py') diff --git a/python/examples/example-client.py b/python/examples/example-client.py new file mode 100644 index 00000000..0038b2db --- /dev/null +++ b/python/examples/example-client.py @@ -0,0 +1,12 @@ +#!/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) -- cgit