🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.tcl
Article #9

Re: -justify center for ttk::button

#9
From: nemethi
Date: Wed, 07 Oct 2026 10:19
68 lines
3496 bytes
Am 07.10.26 um 08:59 schrieb Harald Oehlmann:
> Am 06.10.2026 um 21:52 schrieb nemethi:
>> Invoking "ttk::style configure custom.TButton ..." and then creating a 
>> button of the *different* style custom.Toolbutton doesn't make much 
>> sense!  Make sure that the button has the same style!
>>
> 
> Ok, next try, repeating the last three and correcting results:
> 
> T1) vista theme, toolbutton
> 
> ttk::style theme use vista
> ttk::style configure custom.Toolbutton -anchor center -justify center
> pack [ttk::button .b -style custom.Toolbutton -text centered\n2]
> 
> Tk 8.6: ok, 9.0: no, 9.1: ok
> 
> T2) alt theme, toolbutton
> 
> 
> ttk::style theme use alt
> update
> ttk::style configure custom.Toolbutton -anchor center -justify center
> pack [ttk::button .b -style custom.Toolbutton -text centered\n2]
> 
> Tk 8.6: ok, 9.0: no, 9.1: ok
> 
> T3) vista theme, button
> 
> ttk::style theme use vista
> ttk::style configure custom.TButton -anchor center -justify center
> pack [ttk::button .b -style custom.TButton -text centered\n2]
> 
> Tk 8.6: ok, 9.0: no, 9.1: ok
> 
> T4) alt theme, button
> 
> ttk::style theme use alt
> update
> ttk::style configure custom.TButton -anchor center -justify center
> pack [ttk::button .b -style custom.TButton -text centered\n2]
> 
> Tk 8.6: ok, 9.0: no, 9.1: ok
> 
> T5) vista theme, button, command line option
> 
> ttk::style theme use vista
> pack [ttk::button .b -text centered\n2 -justify center]
> 
> Tk 8.6: invalid option, 9.0: ok, 9.1: no effect
> 
> So, the results are:
> -justify styling option: ok on 8.6 and 9.1, no effect on 9.0
> -justify command option: ok on 9.0, no effect on 9.1
> 
> Does this sounds reasonable?
> 
> Thanks for all,
> Harald

Yes, this looks much better.  But note that the upcoming Tk versions 
will improve some of these results, due to the many bugfixes of the last 
few weeks.  For example, the -justify widget option is no longer ignored 
by the current trunk version of Tk 9.1, and the -justify styling option 
is no longer ignored by Tk 9.0 built from the current core-9-0-branch.

-- 
Csaba Nemethi  https://www.nemethi.de  mailto:csaba.nemethi@t-online.de
Technical Details
Message-ID: <11a56c8$vqe6$1@tota-refugium.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
References: <1791192600-1108@newsgrouper.org> <119vrsm$qijb$1@dont-email.me> <11a0lsi$sfam$1@tota-refugium.de> <11a231o$1lo82$1@dont-email.me> <11a365g$uboc$1@tota-refugium.de> <11a3fuu$27c7h$1@dont-email.me> <11a3jhf$umpg$1@tota-refugium.de> <11a4ql6$2khi4$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
From: nemethi <csaba.nemethi@t-online.de>
Newsgroups: comp.lang.tcl
Subject: Re: -justify center for ttk::button
Date: Wed, 7 Oct 2026 12:19:52 +0200
Message-ID: <11a56c8$vqe6$1@tota-refugium.de>
References: <1791192600-1108@newsgrouper.org> <119vrsm$qijb$1@dont-email.me>
 <11a0lsi$sfam$1@tota-refugium.de> <11a231o$1lo82$1@dont-email.me>
 <11a365g$uboc$1@tota-refugium.de> <11a3fuu$27c7h$1@dont-email.me>
 <11a3jhf$umpg$1@tota-refugium.de> <11a4ql6$2khi4$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 7 Oct 2026 10:19:52 -0000 (UTC)
Injection-Info: tota-refugium.de;
	logging-data="1042886"; mail-complaints-to="abuse@news.tota-refugium.de"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:YfbXx22pOw6brO0AiEFXLnylUIs=
X-User-ID: eJwFwYkBwCAIA8CVKiTBjsOj+4/gHV1LHRAFXt69UmOIHlkDKib8bHz81y6n8WZ4lvGY1eABDM0Qlg==
In-Reply-To: <11a4ql6$2khi4$1@dont-email.me>
Content-Language: en-US