invalid command name "toplevel"
    while executing
"toplevel .t"
    (in namespace eval "::request" script line 6)
    invoked from within
"namespace eval ::request $script"
    ("::try" body line 12)

OUTPUT BUFFER:

#!/usr/local/bin/wish set Fonte "Courier 12" set Texte "abcdefghij\n0123456789\nABCDEFGHIJ" toplevel .t #frame .t text .t.t -font $Fonte -state normal canvas .t.c -width 150 -height 150 pack .t.t .t.c -side top set w .t.c set t .t.t set y 0 $t tag configure hop -foreground white -background blue $t insert 0.0 $Texte $t tag add hop 1.8 2.0 $t tag add hop 2.2 2.7 $t tag add hop 3.4 3.9 puts "dump texte" foreach {k v i} [$t dump -text -tag 0.0 end] { puts "k= $k v= $v i= $i" } puts "index [$t index {2.0 - 1c}]" exit $w configure \ -selectborderwidth 0 \ -insertborderwidth 0 foreach i {10 12 14} { set id$i [$w create text 0 $y -anchor nw -font $Fonte \ -text $Texte] set bb [$w bbox [set id$i]] puts "bbox $bb" set y [lindex $bb 3] set Lm [font metrics $Fonte] puts $Lm set mesure [font measure $Fonte "A"] puts "$mesure" set mesure [font measure $Fonte "AB"] puts "$mesure" } puts "dlineinfo [$t dlineinfo 2.2]" puts "bbox [$t bbox 2.2]" set b [$t bbox end] puts "$b" #foreach e [$w itemconfigure $id10] {puts $e} #puts "" #foreach e [$w configure] {puts $e} $w create text 0 0 -text $Texte -anchor nw -font $Fonte $w postscript -file "toto.ps" #exit #puts "[$w itemconfigure $id]"