(self, *args, **kw)
| 53 | return inst |
| 54 | |
| 55 | def __init__(self, *args, **kw): |
| 56 | # Emulate super by calling the next method in the MRO, if there is one. |
| 57 | mro = self.__class__.mro() |
| 58 | for qt_class in QtCore.QObject.mro(): |
| 59 | mro.remove(qt_class) |
| 60 | next_index = mro.index(SuperQObject) + 1 |
| 61 | if next_index < len(mro): |
| 62 | init = mro[next_index].__init__ |
| 63 | if init is object.__init__: |
| 64 | init(self) |
| 65 | else: |
| 66 | init(self, *args, **kw) |
| 67 | |
| 68 | |
| 69 | MetaQObject = type(QtCore.QObject) |