Sujet : Re: A ttk::style question
De : csaba.nemethi (at) *nospam* t-online.de (nemethi)
Groupes : comp.lang.tclDate : 09. Jun 2025, 12:20:24
Autres entêtes
Message-ID : <1026g1o$it9s$1@tota-refugium.de>
References : 1 2 3
User-Agent : Mozilla Thunderbird
Am 09.06.25 um 01:51 schrieb Helmut Giese:
Hi Schelte,
you saved my day, many thanks (and so fast, too).
Maybe one more question:
Is there some source (tutorial, collection of texts, or similar)
where one could learn the basics of working with styles? Anthing?
Thanks again
Helmut
On 09/06/2025 00:44, Helmut Giese wrote:
I want to configure the font of a ttk::radiobutton - but how?
>
Assuming you don't want all your radiobuttons to have the special font,
invent a name for a style that inherits from the normal style for a
radiobutton; TRadiobutton. Configure the font for that derived style.
Then use that style for your radiobutton:
>
ttk::style configure Fixed.TRadiobutton -font TkFixedFont
ttk::radiobutton .b -style Fixed.TRadiobutton -text Hello
>
>
Schelte.
See
https://tkdocs.com/tutorial/styles.html by Mark Roseman.
-- Csaba Nemethi https://www.nemethi.de mailto:csaba.nemethi@t-online.de