home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Practical Programming in Tcl & Tk (4th Edition)
/
TCLBOOK4.BIN
/
mac
/
exsource.old
/
34_8.tcl
< prev
next >
Wrap
Text File
|
2003-04-15
|
284b
|
18 lines
#
# Example 34-8
# Dumping the text widget with a command callback.
#
proc Text_Dump {t {start 1.0} {end end}} {
$t dump -command TextDump $start $end
}
proc TextDump {key value index} {
if {$key == "text"} {
puts "$index \"$value\""
} else {
puts "$index $key $value"
}
}