home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
pc
/
exsource.old
/
32_3.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
299b
|
18 lines
#
# Example 32-3
# Reestablishing validation using an idle task.
#
proc Upper {w validation action new} {
if {$action == 1} {
$w insert insert [string toupper $new]
after idle [list $w configure -validate $validation]
}
return 1
}
entry .e -validate all -vcmd {Upper %W %v %d %S}
pack .e