Artifact
4ebad3237a214a219db652e38f17ff907aed24e0:
Attachment "test.tcl" to
ticket [891141ff]
added by
speedboat
2004-02-05 23:38:33.
set myCount 0
set myVar 5
proc myProc { args } \
{
incr ::myCount
.a configure -text "myProc: myVar=$::myVar myCount=$::myCount"
}
proc myTrace { args } \
{
incr ::myCount
.a configure -text "myTrace: myVar=$::myVar myCount=$::myCount"
}
pack [label .a -text "" -width 40] -side top -fill x
pack [scale .b -from .1 -to 10 -resolution .1 -orient horizontal -variable myVar -command myProc] -side top -fill x
trace variable myVar w myTrace