[PyQt] Bug in sip-4.11.1 and PyQt-4.7.7 ?

Vicente Sole sole at esrf.fr
Mon Sep 27 20:02:49 BST 2010


Hi Gerard,

Quoting Gerard Vermeulen <gav451 at gmail.com>:

>  Phil,
>
> when running the following code
>
> #!/usr/bin/env python
> # -*- coding: utf-8 -*-
>
> import PyQt4.Qt as Qt
>
> class MyWidget(Qt.QWidget):
>
>     def __init__(self, parent=None):
>         super(Qt.QWidget, self).__init__(parent)
>

Just for my information, what is the difference between:

super(Qt.QWidget, self).__init__(parent)

and:

Qt.QWidget.__init__(self, parent)

I have never used super(....) and never found the reported problem but  
I do not have very recent versions of sip and PyQt installed.

Best regards,

Armando


More information about the PyQt mailing list