[PyQt] Multiple inheritance with pyqt and python class

brian downing brian.downing at yakkadesign.com
Fri Jun 11 21:06:10 BST 2010

I know multiple inheritance with 2 pyqt objects isn't allowed. Is there 
any problems with a single pyqt object and another python class?

Here is an example:
class myMethods:
def __init__(self, val):
def method1(self):

classMyWidget(QWidget, myMethods)
def __init__(self, parent=None):
myMethods.__init__(self, 2)
QWidget.__init__(self, parent)

This seems to work. The examples I've looked at uses a single pyqt 
object and the super method. I wanted to be sure I'm not doing something 
that will cause headaches in the future.


More information about the PyQt mailing list