here's what I'm trying to do:
button $w.ok -text "OK"
button $w.cancel -text "Cancel"
pack $w.ok $w.cancel -side left -fill x
I'd like the OK and Cancel butons centered. Unfortunately, the
packing space for them is rather big (about 5x the length of both
buttons), and I'd like them centered within the packing space.
Suggestions anyone?
many thanks!
greg
--
Greg Trafton
(tra...@itd.nrl.navy.mil)
# for illustrative purposes...
text .text
pack .text -side top
# create a frame for the buttons, then create the buttons
# inside that frame
frame .options
button .options.ok -text ok -width 5
button .options.cancel -text cancel -width 5
pack .options.ok .options.cancel -side left -expand n -fill none
pack .options -side bottom -anchor n
--
Bryan Oakley, Software Engineer
Healthcare Communications, Inc.
oak...@healthcare.com
If $w were packed with a "-fill x", take out the "-fill x". After that,
I'd say the only thing left is take out the "-fill x" from the above.
The result should be two buttons centered in your window.
Hope this helps.
-----------------
Sandeep V. Tamhankar
Analysis Technician
Signaling Capabilities Analysis
The statements herein contained are my own and not those of my company.
e-mail: stam...@notes.cc.bellcore.com
WWW: http://stos-www.cit.cornell.edu/Sandeep_html/Sandeep.html