Project

General

Profile

Download (506 Bytes) Statistics
| Branch: | Tag: | Revision:
#!/usr/bin/env python3

import dbus

class Client():
def __init__(self):
bus = dbus.SystemBus()
service = bus.get_object('com.example.service', "/com/example/service")
self._message = service.get_dbus_method('get_message', 'com.example.service.Message')
self._quit = service.get_dbus_method('quit', 'com.example.service.Quit')

def run(self):
print("Mesage from service:", self._message())
self._quit()

if __name__ == "__main__":
Client().run()
(1-1/3)