有人为我运行此代码作为健全性检查会很有帮助。
Python 3.3.1 (default, Apr 17 2013, 22:30:32)
[GCC 4.7.3] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>from PyQt5.QtCore import pyqtSignal
>>>for i in dir(pyqtSignal):
... if i == 'emit':
... print(True)
...
>>>
为其他人返回 true 吗?请注意,从 PyQt4 导入 QObject:
>>> from PyQt4.QtCore import QObject
>>> for i in dir(QObject):
... if i == 'emit':
... print(True)
...
True