[PyQt] PyQt unexpected behavior

Matt Smith melkor at orangepalantir.org
Sun Nov 9 17:30:11 GMT 2008


I initiated a widget twice, by accident, and it caused some cpu issues
in windows when I close the program. I was wondering if there could be
an error/warning, because otherwise the program ran perfectly fine.

class MyWidget(QWidget):
    def __init__(self, parent=None):
        QWidget.__init__(self,parent)
	#some setup/layout
	QWidget.__init__(self,parent)
	#some setup/layout

Really it seems pretty dumb, but I can't image a practical use for the
double initiation.  

thanks
mbs



More information about the PyQt mailing list