unsettling tkinter bug -- or is it just me?

Kevin Russell krussell4 at videon.home.com
Tue Jun 13 23:22:29 EDT 2000


Bob van der Poel wrote:

> oppp, this looks like the same thing I was running with when I posted an
> earlier, unrelated post. In the meantime I've figured out that making
> the 'img' variable global solves the problem.... I guess this all makes
> sense, but it certainly is unsettling for newbies converting stuff from
> tcl/tk to python. Seems to me that their should be a better way.
> Thinking aloud (I may have to try later), if one were to change the
> variable containing the photoimage at a later time would the image in
> the button/label change?

No.  It simply vanishes.

-- Kevin





More information about the Python-list mailing list