Tkinter PhotoImage won't show ;-(
Fredrik Lundh
fredrik at pythonware.com
Sun Jan 29 11:32:50 EST 2006
"vm" wrote:
> I can't find anything wrong (except the result ofc ;-)
>
> This:
>
> picfile = 'logo.gif'
>
> pic = tk.PhotoImage(file=picfile, master=root)
>
> canpic = cv.create_image(320, 240, image=pic) #cv is is a Tkinter
> Canvas ofc
>
> ...works just fine, but when I put it in the event binding function, it
> doesn't work,
this is explained in the python faq, and towards the end of this
page:
http://effbot.org/tkinterbook/photoimage.htm
</F>
More information about the Python-list
mailing list