Import Tix 8.4.3.5 (as of svn r86089)

This commit is contained in:
Zachary Ware
2017-05-22 16:16:49 -05:00
parent d239d63057
commit 80ba28babb
769 changed files with 136423 additions and 0 deletions

49
tests/general/select.tcl Normal file
View File

@@ -0,0 +1,49 @@
# -*- mode: TCL; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*-
#
# $Id: select.tcl,v 1.2 2002/11/13 21:12:18 idiscovery Exp $
#
proc About {} {
return "Testing the TixSelect widget"
}
proc Test {} {
set dis [tix option get disabled_fg]
set norm [tix option get fg]
# Create with a normal state
#
#
tixSelect .foo -allowzero 0 -radio 1 -label "Foo:" \
-state normal
.foo add "1" -text "One"
.foo add "2" -text "Two"
pack .foo
Assert {[.foo subwidget label cget -foreground] == $norm}
.foo config -state normal
.foo config -state normal
Assert {[.foo subwidget label cget -foreground] == $norm}
.foo config -state disabled
Assert {[.foo subwidget label cget -foreground] == $dis}
.foo config -state normal
Assert {[.foo subwidget label cget -foreground] == $norm}
update
destroy .foo
tixSelect .foo -allowzero 0 -radio 1 -label "Foo:" \
-state disabled
.foo add "1" -text "One"
.foo add "2" -text "Two"
pack .foo
Assert {[.foo subwidget label cget -foreground] == $dis}
.foo config -state normal
Assert {[.foo subwidget label cget -foreground] == $norm}
.foo config -state normal
Assert {[.foo subwidget label cget -foreground] == $norm}
.foo config -state disabled
Assert {[.foo subwidget label cget -foreground] == $dis}
.foo config -state normal
Assert {[.foo subwidget label cget -foreground] == $norm}
}