|
From: Joe E. <jen...@fl...> - 2004-12-27 21:36:45
|
Jeff Hobbs wrote:
> The core actually interprets -width in pixels if any image is
> associated with the widget. I'm not sure this is the right
> thing to do for compound widgets, but that's what it does.
I'm pretty sure that's not the right thing at all.
Part of the rationale for why Tile labels and buttons work
differently in this regard is to support customizable toolbars,
where the user can select "Pictures and text", "pictures only",
or "text only", as found in most web browsers. To support
this use case, Tile added "-compound text" and "-compound image";
this makes it easier to switch back and forth (with Tk buttons,
to get the effect of "-compound text" you need to set "-image {}";
and you have to remember what the original image was in order
to change it back).
With this usage, it's preferable that the "-width" option always
mean the same thing, instead of sometimes being in pixels and
sometimes being in characters depending on the values of other
options.
--Joe English
jen...@fl...
|