[PyQt] How to insert a picture

Fabien Lafont lafont.fabien at gmail.com
Thu Jan 5 09:57:18 GMT 2012


Hello,

I'm trying to insert a picture in PyQt. I've tried

LED = QLabel.setPixmap(QPixmap("LED_ON.PNG"))

but it returns:

LED = QLabel.setPixmap(QPixmap("LED_ON.PNG"))
TypeError: QLabel.setPixmap(QPixmap): first argument of unbound method
must have type 'QLabel'

Any Idea?


More information about the PyQt mailing list