On Fri, 12 Jun 2009 17:11:01 +0200, Guillaume Chanaud <[email protected]> wrote: > Hello everybody, > > i'm just a python and PyQt beginner but i have a problem with a simple > QWizard. So i tried to do the most simple code and it doesn't work too. > Here are the steps > > In QtDesigner create a new QWizard widget. Simply do nothing and save it! > # pyuic4 myqwizard.ui > myqwizard.py > > Generation is ok since last PyQT version (4.5), it throwed an error > before (i'm on gentoo, i suspect i had QT 4.5 installed and PyQT 4.4) > > And then in python > from PyQt4 import QtCore, QtGui > from myqwizard import Ui_Wizard > import sys > > class StartQT4(QtGui.QMainWindow): > def __init__(self, parent=None): > QtGui.QWidget.__init__(self, parent) > self.ui = Ui_Wizard() > self.ui.setupUi(self)
You are calling the wrong super-class __init__(). Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
