[PyKDE] Error with pyuic?

Phil Thompson phil at riverbankcomputing.co.uk
Sat Jun 14 12:27:00 BST 2003


On Saturday 14 June 2003 1:13 am, Wido Depping wrote:
> I have a problem with pyuic shipped with PyQt 3.6.
> If I embed an icon in the ui file and run pyuic, I get the following
> output:
>
> # looks ok
> image0_data = [
> "22 22 181 2",
> "Qt c None",
> "aV c #d95500",
> .....
> "QtQtQtQtaLaMaNaOQtQtQtQtQtQtaPaQaRaSQtQtQtQt",
> "QtQtQtQtaTaUaVQtQtQtQtQtQtQtQtaWaXaYQtQtQtQt"
> ]
>
> # the next lines are from __init__()
> # with or without self???
> # if module is imported i get a traceback that image0 is not defined
> # maybe 'image0 = QPixmap(image0_data)', or other way round?
> self.image0 = QPixmap(image0_data)
> self.aboutMyProgramm.setIconSet(QIconSet(image0))

Try the current snapshot.

Phil




More information about the PyQt mailing list