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

Fredrik Lundh fredrik at pythonware.com
Mon Aug 14 05:40:39 EDT 2006


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