PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 1044 - Incorrect call to parent constructor in example
: Incorrect call to parent constructor in example
Status: RESOLVED FIXED
Product: PySide
Classification: Unclassified
Component: Documentation
: 1.0.8
: All All
: P5 trivial
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-11-03 18:25 EET by Vladimir Rutsky
Modified: 2012-01-04 16:25 EET (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Rutsky 2011-11-03 18:25:56 EET
I believe there is an error in example in
http://www.pyside.org/docs/pyside/PySide/QtUiTools/QUiLoader.html:

class MyWidget(QWidget):
    def __init__(self, parent):
        super(QWidget, self).__init__(parent)
        ...

Correct call to "next parent" constructor should look like:

class MyWidget(QWidget):
    def __init__(self, parent):
        super(MyWidget, self).__init__(parent)
        ...
Comment 1 Hugo Parente Lima 2012-01-04 16:25:59 EET
Fixed in commit:

pyside/2e20211cb711ad1767d17d074da24c7857d9450d

The changes will be visible online on the next release.