PyQT picture display

Jim jbublitzNO at SPAMnwinternet.com
Sat Sep 7 08:44:12 CEST 2002


Jim wrote:
> Hello to all,
> 
> I've a widget with three buttons and a label. I want to display a JPEG 
> picture when either of the first two buttons is clicked. When I run the 
> code below, the widget displays on screen but when either button is clicked,
> the picture does not appear( the text in the label disappears as it should 
> ). Can anyone tell me what I'm doing wrong here?

As far as I can tell, nothing's wrong. It works fine
for me. Are you sure the jpg files actually exist and
the path to them is correct? The only thing I changed
in your program was the filenames for the image files.

I used PyQt-3.3.2 with Qt 2.3.0 on Linux.

(another) Jim




More information about the Python-list mailing list