[PyKDE] A bug confirmed
Dave S
eric3 at pusspaws.net
Fri Sep 29 16:35:47 BST 2006
On Friday 29 September 2006 12:50, David Boddie wrote:
> On Fri Sep 29 13:22:40 MEST 2006, Dave S wrote:
> > Start QT4 designer - create a new form type 'main window'
> >
> > put a push button on it :)
> >
> > save it
> >
> > pyuic it ...
> >
> > Try to call it with ...
>
> [Code snipped]
>
> > and you get a 'setCentralWidget' error.
> >
> > QT v4.1.4; PyQt v4.0.1; and Python v2.4.3
>
> This is related to your other message. You need to run pyuic4 instead of
> pyuic. If pyuic4 didn't get installed then that's a bug with the build
> system. pyuic is for PyQt applications that use Qt 3.
>
I downloaded PyQt-win-gpl-4.0.1.zip and PyQt-x11-gpl-4.0.1.tar.gz, unzipped
them both and found only pyuic inside of them and neither had a pyuic4.
Looking at the pyuic code it starts with ...
#!/usr/bin/env python
import sys
import optparse
import logging
from PyQt4 import QtCore, uic
Version = "Python User Interface Compiler %s for Qt version %s" %
(QtCore.PYQT_VERSION_STR, QtCore.QT_VERSION_STR)
so it is using PyQt4 - so I it must be in effect 'pyuic4'. Unfortunately my
problem remains
Dave
More information about the PyQt
mailing list