[ltk-user] configuring widgets

Peter Herth herth at peter-herth.de
Thu Aug 18 18:57:07 UTC 2011


Hi Norm,

this is a complex topic :). Up to 8.4, Tk widgets could be configured
with respect to their colors and fonts to your hearts content. From
8.5, Tk replaced many (but not all) widgets with their Ttk (Tile)
counterparts. Never version of LTk use those widgets too. These
widgets were based on a theming engine, mostly to make them look
native on any supported platform. And indeed since 8.5 Tk user
interfaces look much better. As a price to pay, you cannot just play
around with their colors. However, my experience is, one rarely really
needs to do that. There is a facility to change the themes used by the
widgets themselves, but honestly, I have not yet been able to figure
out how that really works and such support for that in LTk is rather
basic (volunteers wanted :))
With the scrolled-* widgets, its a special case - they are implemented
in LTk on top of Tk widgets - and such do not directly implement all
methods. They are containers, which place the scrollbars and the
scrolled widget as subwidget.  You don't want to configure the
container, but the scrolled widget. To access it, call the "canvas"
accessor on the scrolled canvas, and "interior" on the scrolled frame.

Peter

On Wed, Aug 17, 2011 at 6:55 AM, norman hochstetler <normhoch at gmail.com> wrote:
> Hi Again,
>
>  Still delighted with Ltk but having problem getting general widgets
> configured for background color, font, etc.  Certain ones seem to work
> fine, others complain configuration pairs not workable.  Could you
> send me an example script which will (for instance) provide background
> color and font for a scrollable listbox ?  Would much appreciate.
> Thanks in advance.
>
>  Norm Hochstetler
>
> _______________________________________________
> ltk-user site list
> ltk-user at common-lisp.net
> http://common-lisp.net/mailman/listinfo/ltk-user
>




More information about the ltk-user mailing list