【发布时间】:2016-08-30 05:49:00
【问题描述】:
使用 Python 3 DBUS 模块,信号处理程序为 PropertiesChanged 信号采用的默认参数如下:
def handler(interface, changed_properties, invalidated_properties):
something...
监听器设置如下:
dbus.Interface.connect_to_signal("PropertiesChanged", handler)
我怎样才能在最后添加一个额外的参数,以便我可以拥有一个具有如下结构的信号处理程序:
def handler(interface, changed_properties, invalidated_properties, extra_argument):
something...
【问题讨论】:
标签: python linux python-3.x signals dbus