[PyQt] Two base classed inherit QWidget
Filip Gruszczyński
gruszczy at gmail.com
Sat Jan 31 17:20:52 GMT 2009
Could someone explain to me, how is that possible and why it works:
class A(QWidget):
def __init__(self):
QWidget.__init__(self)
class B(QWidget):
def __init__(self):
QWidget.__init__(self)
class C(A, B):
def __init__(self):
A.__init__(self)
B.__init__(self)
I mean, it's cool, that it works - I just used and I love it. But
having just C(QWidget, QWidget) won't work. Why above example does?
--
Filip Gruszczyński
More information about the PyQt
mailing list