简单的信号/时隙实现
signalslot的Python项目详细描述
signal slot:python的简单信号/插槽实现
这个包为python提供了一个简单而愚蠢的Signal/Slot pattern实现。 维基百科有一个很好的介绍:
Signals and slots is a language construct introduced in Qt for communication between objects[1] which makes it easy to implement the Observer pattern while avoiding boilerplate code.
“模式”中详细说明了针对信号/时隙的基本原理 文档的一节。
安装
安装最新的稳定版本:
pip install signalslot
安装开发版本:
pip install -e git+https://github.com/Numergy/signalslot
升级
升级至最新稳定版本:
pip install -U signalslot
卸载
pip uninstall signalslot