[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Two base classed inherit QWidget
From:       Filip_GruszczyƄski <gruszczy () gmail ! com>
Date:       2009-01-31 17:20:52
Message-ID: 1be78d220901310920w478ae8aar4c1be9036f3f8e14 () mail ! gmail ! com
[Download RAW message or body]

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

_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic