diff options
author | Havoc Pennington <hp@redhat.com> | 2003-09-30 02:41:13 +0000 |
---|---|---|
committer | Havoc Pennington <hp@redhat.com> | 2003-09-30 02:41:13 +0000 |
commit | 0469cdb2c7a504f4d47a08cc3c482f26babb2cc4 (patch) | |
tree | b2dce5ab044645f5febd7f712ab63781b80ddaaf /python/examples/example-client.py | |
parent | 42019c962537b940311573b1ec62495b973b5bfd (diff) |
add examples
Diffstat (limited to 'python/examples/example-client.py')
-rw-r--r-- | python/examples/example-client.py | 12 |
1 files changed, 12 insertions, 0 deletions
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) |