Pop-Up Thingie
Sidebar
Too Lazy BBS
Home
Forum
Files
Chat
Bulletins
Top doors
MOTD
BBS Stats
Dark
Register
Log in
Username
Password
Sidebar
Forum
USENET
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
Widgit
Sun Jan 11 18:29:52 2026
from
New Zealand
via
Telnet
Geek2
Sun Jan 11 14:07:03 2026
from
Euclid, Oh
via
Telnet
Geek2
Sun Jan 11 11:15:24 2026
from
Euclid, Oh
via
Telnet
Crackerchest
Sun Jan 11 08:12:39 2026
from
Usa
via
Telnet
System Info
Sysop:
Amessyroom
Location:
Fayetteville, NC
Users:
54
Nodes:
6 (
1
/
5
)
Uptime:
21:27:27
Calls:
742
Files:
1,218
D/L today:
6 files
(8,794K bytes)
Messages:
186,211
Posted today:
1