Sun, 19 Jun 2011 19:36:27 +0200
Changed the code to use super() to access the superclass.
# -*- coding: utf-8 -*- """ Module implementing $CLASSNAME$. """ from PyQt4.QtCore import pyqtSlot from PyQt4.QtGui import $SUPERCLASS$ from .Ui_$FORMFILE$ import Ui_$FORMCLASS$ class $CLASSNAME$($SUPERCLASS$, Ui_$FORMCLASS$): """ Class documentation goes here. """ def __init__(self, parent=None): """ Constructor @param parent reference to the parent widget (QWidget) """ super().__init__(parent) self.setupUi(self)