diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-15 21:06:16 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2007-10-15 21:06:16 (GMT) |
commit | abcf21eecbc0627f16250c70fc56ff58348c68a8 (patch) | |
tree | 316082a042e1ef2c5c60073e8be3a90025095d61 /library/demos/check.tcl | |
parent | b2f828793e2d7f586496d46cdbad418983a474dc (diff) | |
download | tk-abcf21eecbc0627f16250c70fc56ff58348c68a8.zip tk-abcf21eecbc0627f16250c70fc56ff58348c68a8.tar.gz tk-abcf21eecbc0627f16250c70fc56ff58348c68a8.tar.bz2 |
GOOBE work on the widget demo, plus a new demo of text widget peering.
Diffstat (limited to 'library/demos/check.tcl')
-rw-r--r-- | library/demos/check.tcl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/library/demos/check.tcl b/library/demos/check.tcl index 3e3ddc4..9c39153 100644 --- a/library/demos/check.tcl +++ b/library/demos/check.tcl @@ -3,7 +3,7 @@ # This demonstration script creates a toplevel window containing # several checkbuttons. # -# RCS: @(#) $Id: check.tcl,v 1.5 2004/12/21 11:56:35 dkf Exp $ +# RCS: @(#) $Id: check.tcl,v 1.6 2007/10/15 21:06:17 dkf Exp $ if {![info exists widgetDemo]} { error "This script should be run from the \"widget\" demo." @@ -35,6 +35,9 @@ checkbutton $w.b3 -text "Driver Sober" -variable sober -relief flat pack $w.b0 -side top -pady 2 -anchor w pack $w.b1 $w.b2 $w.b3 -side top -pady 2 -anchor w -padx 15 +## This code makes $w.b0 function as a tri-state button; it's not +## needed at all for just straight yes/no buttons. + set in_check 0 proc tristate_check {n1 n2 op} { global safety wipers brakes sober in_check |