|
From: <Csa...@t-...> - 2004-12-26 15:57:11
|
The -width option for tile labels is always in characters, even if the widget contains an image (in this case, the value of the -width option is silently ignored). In the case of the core label widgets containing an image the width is interpreted in pixels and is not ignored. This makes it possible to hide part of an image by just embedding it in a label and setting the latter's width to an appropriate value. Moreover, by using the -anchor option, one can also specify which part of the image should get hidden. Unfortunately, all this is not possible with tile labels. Can anybody tell me the reason for this change? There are cases where the "trick" described above is of vital importance. I know, there are various workarounds, but they all consume far more resources than the simple solution using a core label widget. I would like to suggest that the width of tile label widgets containg an image is interpreted in pixels, just like that of the Tk labels with images. Another question: Why do tile label widgets have no -height option? -- Csaba Nemethi http://www.nemethi.de mailto:csa...@t-... |