summaryrefslogtreecommitdiffstats
path: root/library/demos/states.tcl
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2014-02-11 14:56:03 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2014-02-11 14:56:03 (GMT)
commit516852090184a41922b7affe4ed80f041c6fb5b1 (patch)
tree84540cc58da5230bb7ce892792c54e13b6dd1a19 /library/demos/states.tcl
parent3f10ca63b7375aadf45e45f9ddfcccdc33f48661 (diff)
downloadtk-516852090184a41922b7affe4ed80f041c6fb5b1.zip
tk-516852090184a41922b7affe4ed80f041c6fb5b1.tar.gz
tk-516852090184a41922b7affe4ed80f041c6fb5b1.tar.bz2
[3f456a5bb9]: Patches for listbox right justify
FossilOrigin-Name: 87d4c7788ed98145fce47d8b92908c6550350949
Diffstat (limited to 'library/demos/states.tcl')
-rw-r--r--library/demos/states.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/demos/states.tcl b/library/demos/states.tcl
index e76540d..09d2718 100644
--- a/library/demos/states.tcl
+++ b/library/demos/states.tcl
@@ -19,6 +19,15 @@ positionWindow $w
label $w.msg -font $font -wraplength 4i -justify left -text "A listbox containing the 50 states is displayed below, along with a scrollbar. You can scan the list either using the scrollbar or by scanning. To scan, press button 2 in the widget and drag up or down."
pack $w.msg -side top
+foreach c {Left Center Right} {
+ set lower [string tolower $c]
+ radiobutton $w.$lower -text $c -variable just \
+ -relief flat -value $lower -anchor w \
+ -command "$w.frame.list configure -justify \$just" \
+ -tristatevalue "multi"
+ pack $w.$lower -side left -pady 2 -fill x
+}
+
## See Code / Dismiss buttons
set btns [addSeeDismiss $w.buttons $w]
pack $btns -side bottom -fill x