File: example-client.py

package info (click to toggle)
dbus 0.23.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,112 kB
  • ctags: 4,832
  • sloc: ansic: 58,374; sh: 8,603; xml: 7,376; cs: 3,348; cpp: 1,043; makefile: 767; python: 523; java: 15
file content (12 lines) | stat: -rw-r--r-- 358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python

import dbus

bus = dbus.SessionBus()
remote_service = bus.get_service("org.designfu.SampleService")
remote_object = remote_service.get_object("/SomeObject",
                                          "org.designfu.SampleInterface")

hello_reply_list = remote_object.HelloWorld("Hello from example-client.py!")

print (hello_reply_list)