开发者

Do PyQt classes inherit from object?

开发者 https://www.devze.com 2023-02-24 08:57 出处:网络
Do PyQt classes in开发者_如何学Goherit from object?>>> from PyQt4 import QtCore >>> QtCore.QObject.__mro__

Do PyQt classes in开发者_如何学Goherit from object?


>>> from PyQt4 import QtCore
>>> QtCore.QObject.__mro__
(<class 'PyQt4.QtCore.QObject'>, <type 'sip.wrapper'>, <type 'sip.simplewrapper'>, <type 'object'>)

So the answer is yes (at least QObject does, but I assume non-descendants of QObject do, too).

0

精彩评论

暂无评论...
验证码 换一张
取 消