OUTPUT BUFFER:
#!/usr/local/bin/wish proc gTag {w p} { lassign [split [$w index $p] .] y x $w tag add Mrk $y.$x $y.[expr {$x+1}] puts "[$w index $p]" } pack [text .t -width 10 -height 10] .t insert end [string repeat "012345679\n" 10] .t tag configure toto -background green .t tag add toto 2.4 2.8 4.4 4.8 6.4 6.8 .t tag bind toto