[PyKDE] Incorrect code generation with PyQt-win-commercial-snapshot-20030 309

Tuvi, Selim stuvi at SLAC.Stanford.EDU
Mon Mar 17 20:54:01 GMT 2003


When I convert my .ui file with pyuic.exe from snapshot-20030309 the following code is produced. As you can see the 'image0' reference in setPixmap is incorrect.

The same .ui file is generated properly with PyQt 3.5.

		:
		:
class RunControlMainGUI(QMainWindow):
    def __init__(self,parent = None,name = None,fl = 0):
        QMainWindow.__init__(self,parent,name,fl)
        self.statusBar()

        self.image0 = QPixmap(image0_data)
		:
		:
        self.AppOpenButton = QPushButton(self.Frame1,"AppOpenButton")
        self.AppOpenButton.setSizePolicy(QSizePolicy(0,0,0,0,self.AppOpenButton.sizePolicy().hasHeightForWidth()))
        self.AppOpenButton.setPixmap(image0)
        Layout2.addWidget(self.AppOpenButton)

Thanks
-Selim

Selim Tuvi, Research Engineering Group, SLAC
GLAST, I&T Online, MS 98
Tel:650-926-3376 Fax:650-926-4335




More information about the PyQt mailing list