用于twisted应用程序的dbus协议的本地python实现。
txdbus的Python项目详细描述
汤姆科卡涅<;tom.cocagne@gmail.com>; v1.1.0,2017年7月
用法示例
#!/usr/bin/env pythonfromtwisted.internetimportreactor,deferfromtxdbusimporterror,client@defer.inlineCallbacksdefshow_desktop_notification():''' Displays "Hello World!" in a desktop notification window for 3 seconds '''con=yieldclient.connect(reactor,'session')notifier=yieldcon.getRemoteObject('org.freedesktop.Notifications','/org/freedesktop/Notifications')nid=yieldnotifier.callRemote('Notify','Example Application',0,'','Tx DBus Example','Hello World!',[],dict(),3000)reactor.stop()reactor.callWhenRunning(show_desktop_notification)reactor.run()