Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do PyQt classes inherit from object?

Tags:

python

pyqt

Do PyQt classes inherit from object?

like image 441
Neil G Avatar asked Feb 20 '26 07:02

Neil G


1 Answers

>>> 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).

like image 87
Remy Blank Avatar answered Feb 21 '26 22:02

Remy Blank



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!