【发布时间】:2012-07-13 15:45:13
【问题描述】:
我在 PyQt 中发现了一些连接信号和插槽的新方法。请查看此链接。 How to capture output of Python's interpreter and show in a Text widget?。这里 textWritten(signal)=self.normalOutputWritten(function) 是直接连接的。这是工作。有人可以详细说明这种新的连接方式。
重新表述问题: How to capture output of Python's interpreter and show in a Text widget?。 在上面的链接中, testWritten 被定义为 pyqtSignal 和 self.normalOutput 是槽函数。通常,我们使用旧样式或新样式进行连接,但在这里它们只使用了“=”符号。这是工作。请解释一下这种新方法。
【问题讨论】:
标签: pyqt signals-slots