Sujet : Re: A ttk::style question
De : gregor.ebbing (at) *nospam* gmx.de (greg)
Groupes : comp.lang.tclDate : 09. Jun 2025, 14:41:19
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <1026o9v$ibgv$1@dont-email.me>
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.
Hello,
just the one tutorial already mentioned,
otherwise a few links to the theme:
https://tkdocs.com/tutorial/styles.htmlhttps://stackoverflow.com/questions/48050219/customize-ttkbuttonhttps://wiki.tcl-lang.org/page/Changing+Widget+ColorsManuals
https://www.tcl-lang.org/man/tcl/TkCmd/ttk_intro.htmhttps://www.tcl-lang.org/man/tcl/TkCmd/ttk_widget.htmhttps://www.tcl-lang.org/man/tcl/TkCmd/ttk_style.htmhttps://www.tcl-lang.org/man/tcl/TkCmd/ttk_image.htmhttps://www.tcl-lang.org/man/tcl/TkCmd/ttk_vsapi.htmolder
https://tktable.sourceforge.net/tile/https://tktable.sourceforge.net/tile/tile-tcl2004.pdfWindows
https://fossies.org/linux/tk/library/ttk/vistaTheme.tclhttps://fossies.org/linux/tk/library/ttk/xpTheme.tclhttps://fossies.org/linux/tk/library/ttk/winTheme.tclhttps://www.tcl.tk/man/tcl8.6/TkCmd/ttk_vsapi.htmhttps://fossies.org/linux/tk/tests/ttk/vsapi.testDeutsch/German (im Buch)
http://www.tcltk.info/index.htmlgreg