Strange problem with Tkinter... photos don't show on first iteration.

aldonnelley at gmail.com aldonnelley at gmail.com
Mon Aug 14 08:31:56 EDT 2006


Yup,
That's the problem. Can't thank you enough.
I'd read about Tkinter "garbage collection", but, like car crashes and
lung cancer, you never think it's going to happen to you...

thanks once again.
Cheers, Al.

Fredrik Lundh wrote:
> aldonnelley at gmail.com wrote:
>
> > Just having a weird problem with tkinter. I'm trying to make a gui that
> > shows results from an image search, with a "forward" and "back" button
> > so the user can compare results from different pages. All that's
> > working fine...
> > The problem I'm having is that the images don't show onscreen the first
> > time the "first page" of results shows up. When I click the "search
> > again" button, and have more than the original results page to toggle
> > between, the images __do__ show up on the "first page" of results. (and
> > on the second, etc, etc.)
> > Which is to say,  there's no error messages, and on the first "page",
> > the first time it's shown, the Toplevel formats correctly, and there
> > are spaces where the images should be that are the correct size,
> > just... no images.
> > It's baffling me. Perhaps someone can help.
>
> this is explained in the Python FAQ, and also in the note at the bottom
> of this page:
> 
>     http://effbot.org/tkinterbook/photoimage.htm
> 
> </F>




More information about the Python-list mailing list