【发布时间】:2015-04-21 15:37:54
【问题描述】:
我有一些dbus.proxies.Interface。以及它的一些 API 文档(在 *.txt 文件中)。
我需要在这个界面上添加一些新功能,但实际上我找不到这个界面。 用于解释的简单python代码块
set_obj = bus.get_object('org.Murphy', path)
rset = dbus.Interface(set_obj, dbus_interface='org.murphy.resourceset')
# print(type(rset)) this printing "<class 'dbus.proxies.Interface'>"
rset.delete()
我需要让rset.foo() 之类的东西正常工作。但我不明白我需要在哪里声明和实现foo()
【问题讨论】: