Pop-Up Thingie
Sidebar
War Ensemble BBS
Home
Forum
Files
Dark
Log in
Username
Password
Sidebar
Forum
Newsgroups
comp.lang.tcl
ttk::progressbar shows text offset left rather than centred
From
Mark Summerfield
@m.n.summerfield@gmail.com to
comp.lang.tcl
on Mon Dec 8 11:51:10 2025
From Newsgroup: comp.lang.tcl
I can't get the text in a ttk::progressbar to show centered.
I'm using Tcl/Tk 9.0.2 on Debian.
Here's an example that shows the problem:
#!/usr/bin/env wish9
tk scaling 1.5
puts "Tcl/Tk $::tcl_patchLevel"
ttk::frame .mf
ttk::progressbar .mf.progress -anchor center
pack .mf -fill both -expand 1
pack .mf.progress -fill x -expand 1
.mf.progress configure -value 5 -maximum 125 -text 5/125
wm minsize . 300 100
bind . <Escape> exit
# The text "5/125" appears offset to the left rather than centered.
# How can I fix this?
--- Synchronet 3.21a-Linux NewsLink 1.2
Who's Online
Recent Visitors
Ptb1970
Sat Dec 13 17:34:42 2025
from
Wisconsin
via
Telnet
Microbot
Sat Dec 13 17:04:31 2025
from
Moore, Ok
via
Telnet
John F Kennedy
Fri Dec 12 21:48:00 2025
from
Crazyworldbbs.Com:2323
via
Telnet
Microbot
Fri Dec 12 18:16:00 2025
from
Moore, Ok
via
Telnet
System Info
Sysop:
DaiTengu
Location:
Appleton, WI
Users:
1,089
Nodes:
10 (
0
/
10
)
Uptime:
153:53:35
Calls:
13,921
Calls today:
2
Files:
187,021
D/L today:
3,760 files
(944M bytes)
Messages:
2,457,163