Re: A ttk::style question

Liste des GroupesRevenir à cl tcl 
Sujet : Re: A ttk::style question
De : csaba.nemethi (at) *nospam* t-online.de (nemethi)
Groupes : comp.lang.tcl
Date : 09. Jun 2025, 14:12:40
Autres entêtes
Message-ID : <1026mk8$j0ir$1@tota-refugium.de>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
Am 09.06.25 um 13:36 schrieb Alan Grunwald:
On 09/06/2025 12:20, nemethi wrote:
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.
>
 That's great, Csaba, thank you. I've been looking for ages for something that explained Ttk styles in a way that was natural to me, and this may well be it. Is there any thing similar to explain how to modify layouts? (Assuming it's possible.)
 Alan
If you go to the Wiki page https://wiki.tcl-lang.org/ and type "ttk::style layout" into the Search field, you will get a series of useful articles about this subject.
--
Csaba Nemethi  https://www.nemethi.de  mailto:csaba.nemethi@t-online.de

Date Sujet#  Auteur
8 Jun 25 * A ttk::style question8Helmut Giese
9 Jun 25 `* Re: A ttk::style question7Helmut Giese
9 Jun 25  +* Re: A ttk::style question3nemethi
9 Jun 25  i`* Re: A ttk::style question2Alan Grunwald
9 Jun 25  i `- Re: A ttk::style question1nemethi
9 Jun 25  +- Re: A ttk::style question1greg
10 Jun 25  `* Re: A ttk::style question2Helmut Giese
10 Jun 25   `- Re: A ttk::style question1Harald Oehlmann

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal