Thread View: comp.lang.tcl
3 messages
3 total messages
Started by Harald Oehlmann
Wed, 07 Oct 2026 06:59
Re: -justify center for ttk::button
Author: Harald Oehlmann
Date: Wed, 07 Oct 2026 06:59
Date: Wed, 07 Oct 2026 06:59
60 lines
3056 bytes
3056 bytes
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
Re: -justify center for ttk::button
Author: nemethi
Date: Wed, 07 Oct 2026 10:19
Date: Wed, 07 Oct 2026 10:19
68 lines
3496 bytes
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
Re: -justify center for ttk::button
Author: Harald Oehlmann
Date: Wed, 07 Oct 2026 12:04
Date: Wed, 07 Oct 2026 12:04
24 lines
2402 bytes
2402 bytes
Am 07.10.2026 um 12:19 schrieb nemethi: > 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. > Dear Csaba, Thank you for all this! My personal issue is now solved. Dear all: The remaining points are: - why is only the command line option documented and not the styling option? - why was the command line option "-justify" added in 9.0, if there is a styling option? This makes IMHO little sense, if -anchor is only available via styling... Or is -justify seen as part of the label text? I think, this is the point. Thanks for all, Harald
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads