Hello Martin,
widget.setPixMap(QPixmap('otje.jpg'))
threw an error for me. I think, it should be
widget.setPixmap(QPixmap('otje.jpg'))
Kind regards,
Lukas
Hello Martin,
widget.setPixMap(QPixmap('otje.jpg'))
threw an error for me. I think, it should be
widget.setPixmap(QPixmap('otje.jpg'))
Kind regards,
Lukas
I found the same error. Thanks Lukas.
Thanks @Lukas_Oster & @Impiastro_1 – you’re right, there was a typo. I’ve fixed it in the tutorial (also in the book). Appreciate the help!
I get this error:
widget.setPixmap(QPixmap(‘otje.jpg’))
NameError: name ‘QPixmap’ is not defined
the method is listed in QWidgets.pyi - do I need to import something extra QGraphicsPixmapItem?