Why does Tkinter do this?

Eric Brunel eric.brunel at pragmadev.com
Mon Sep 23 04:05:15 EDT 2002


Mark Wright wrote:

> I'm trying to create a resizeable Label with an image.  bind()ing to
> the configure event allows me to resize the image whenever the label
> is resized, but if I set the size of the image to the new size of the
> label, it is too big (which produces cascading 'configure' events and
> a steadily expanding Label).  OK, so I try subtracting the borderwidth
> - which is no good either.  But if I subtract the borderwidth *times
> two*, it works.  Can anyone explain this to me?

Errrr, because the border is on both sides...?
-- 
- Eric Brunel <eric.brunel at pragmadev.com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com



More information about the Python-list mailing list