[PyQt] Problem with QWizard from QtDesigner to PyQt4
phil at riverbankcomputing.com
Fri Jun 12 16:20:29 BST 2009
On Fri, 12 Jun 2009 17:11:01 +0200, Guillaume Chanaud
<guillaume.chanaud at connecting-nature.com> 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()
You are calling the wrong super-class __init__().
More information about the PyQt