<font size=2 face="sans-serif">Hi there, </font>
<br>
<br><font size=2 face="sans-serif">I've just read through </font><a href=http://pyqt.sourceforge.net/Docs/PyQt5/multiinheritance.html><font size=2 color=blue face="sans-serif">http://pyqt.sourceforge.net/Docs/PyQt5/multiinheritance.html</font></a><font size=2 face="sans-serif">.</font>
<br><font size=2 face="sans-serif">I'm using a self-built PyQt5 for Python
2 on Windows - and it seems I can't get multiple inheritance to work:</font>
<br>
<br><tt><font size=2>class SomeClass(object):</font></tt>
<br>
<br><tt><font size=2>    def __init__(self, attr):</font></tt>
<br><tt><font size=2>        self.attr = attr</font></tt>
<br>
<br><tt><font size=2>class AnotherDialog(QtWidgets.QDialog, SomeClass):</font></tt>
<br>
<br><tt><font size=2>    def __init__(self, parent=None):</font></tt>
<br><tt><font size=2>        #super(AnotherDialog,
self).__init__(parent) # tested this was well</font></tt>
<br><tt><font size=2>        QtWidgets.QDialog.__init__(self,
parent)</font></tt>
<br><tt><font size=2>        SomeClass.__init__(self,
1)</font></tt>
<br>
<br>
<br><tt><font size=2>app = QtWidgets.QApplication([])</font></tt>
<br><tt><font size=2>dlg = AnotherDialog()</font></tt>
<br>
<br><font size=2 face="sans-serif">This always results in </font>
<br>
<br><tt><font size=2>TypeError: __init__() takes exactly 2 arguments (1
given)</font></tt>
<br>
<br><font size=2 face="sans-serif">is there a workaround for this?</font>
<br>
<br><font size=2 face="sans-serif">Cheers,</font>
<br><font size=2 face="sans-serif">Sebastian</font>
<br><font size=2 face="sans-serif">-------------------------------------------------------<br>
Dr. rer. nat. Sebastian Eckweiler</font>
<br><font size=2 face="sans-serif">Senior Software Developer</font>
<br><font size=2 face="sans-serif">Performance & Efficiency<br>
<br>
TWT GmbH<br>
Science & Innovation</font>
<br><font size=2 face="sans-serif">Ernsthaldenstraße 17<br>
D-70565 Stuttgart</font>
<br>
<br><font size=2 face="sans-serif">Tel: +49.7 11.21 57 77.606</font>
<br><font size=2 face="sans-serif">Mobil: +49.162 131.00.64<br>
<br>
E-Mail: Sebastian.Eckweiler@twt-gmbh.de<br>
---------------------------------------------------------</font><font size=2 color=blue face="sans-serif"><u><br>
</u></font><a href="file:///D:/Dokumente%20und%20Einstellungen/TEMP/Lokale%20Einstellungen/Temp/notes39BAE8/www.twt-gmbh.de"><font size=2 color=blue face="sans-serif"><u>www.twt-gmbh.de</u></font></a><font size=2 face="sans-serif"><br>
---------------------------------------------------------<br>
Geschäftsführung: Dr. Dimitrios Vartziotis, Joachim Laicher (Stv.), Frank
Beutenmüller (Stv.)<br>
Registergericht: Amtsgericht Stuttgart, HRB Nr. 212778<br>
Umsatzsteuer: ID-Nr.: DE147841145<br>
---------------------------------------------------------</font>
<br><img src=cid:_2_0A7E688C0A7E65CC0043F3E6C1258084 style="border:0px solid;">