Images (.bmp,.jpg,gif) in Tkinter windows (Tk newbie)

fredrik at pythonware.com fredrik at pythonware.com
Tue Apr 4 04:57:45 EDT 2000


Tim Ottinger wrote:
> >   image = PhotoImage(file="myfile.gif")
> >   widget.config(image=image)
> >   widget.image = image # make sure to hang on to the image
>
> Well, that would be okay, except that it doesn't actually display the
> image on the screen (for me). Neither in '98 (boo) or 'NT (boo).

this definitely works, given a label or button widget.

maybe you should post your code, so we can figure out
what the problem really is.

</F>


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list