Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
dbus python—发送(广播)dbus信号的简单示例_Python_Python 2.7_Dbus Python - Fatal编程技术网

dbus python—发送(广播)dbus信号的简单示例

dbus python—发送(广播)dbus信号的简单示例,python,python-2.7,dbus-python,Python,Python 2.7,Dbus Python,我正在寻找一个dbus-python等价物 ofdbus send--system--type=signal 搜索dbus python并发送信号时, 所有示例都涉及定义一个dbus服务,客户机可以连接到该服务 (例如) dbus python如何允许只发送一个信号?的可能副本-我想这就是您要寻找的。实际上,您从未真正发送过东西,而是在连接到的管道上调用预定义函数。要么你是服务器并定义这些函数,或者,当连接到spotify的DBU时,比如你可以调用它们的play、pause和next函数。不,那

我正在寻找一个dbus-python等价物 of
dbus send--system--type=signal

搜索dbus python并发送信号时, 所有示例都涉及定义一个dbus服务,客户机可以连接到该服务 (例如)


dbus python如何允许只发送一个信号?

的可能副本-我想这就是您要寻找的。实际上,您从未真正发送过东西,而是在连接到的管道上调用预定义函数。要么你是服务器并定义这些函数,或者,当连接到spotify的DBU时,比如你可以调用它们的play、pause和next函数。不,那是关于发送定向消息的,我在寻找广播信号()我的错,我听到你说“简单发送信号”,我觉得这很简单^^