summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-11 14:56:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-02-11 14:56:03 (GMT)
commit7eb4c1166891ec63b165278baa86e5f4bd23aca8 (patch)
tree84540cc58da5230bb7ce892792c54e13b6dd1a19 /library
parentc4b524022a0c010fdc0d526a4297b54d77420ba4 (diff)
downloadtk-7eb4c1166891ec63b165278baa86e5f4bd23aca8.zip
tk-7eb4c1166891ec63b165278baa86e5f4bd23aca8.tar.gz
tk-7eb4c1166891ec63b165278baa86e5f4bd23aca8.tar.bz2
[3f456a5bb9]: Patches for listbox right justify
Diffstat (limited to 'library')
-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