[ltk-user] problem with the :background keyword
harven at free.fr
harven at free.fr
Sat Sep 1 13:48:32 UTC 2012
Ah, I understand. Thanks for the answer.
Harven
----- Mail original -----
De: "Peter Herth" <herth at peter-herth.de>
À: "Talk about Ltk the Lisp Toolkit" <ltk-user at common-lisp.net>
Envoyé: Samedi 1 Septembre 2012 14:17:00
Objet: Re: [ltk-user] problem with the :background keyword
Hi,
short answer: you do nothing wrong, you can't set the background of buttons.
Long answer: Tk introduced a new set of widgets in 8.5, the "Ttk"
versions, which are fully themeable and tend to look native on most
platforms. Ltk by default uses those widgets. As they are based on an
UI theme, they support less configuration options. And frankly
speaking, it is a good practice not to change e.g. the background of
buttons. The only widget, where I needed to change the background
frequently would be the frame widget - and for that reason Ltk wraps
the "classical-frame" which is the old style one with a background
option. You could of course define your own UI theme Tk and Ltk allows
for that.
Peter
More information about the ltk-user
mailing list