global lastX lastY
set x [$c canvasx $x]
set y [$c canvasy $y]
- $c move current [expr $x-$lastX] [expr $y-$lastY]
+ $c move current [expr {$x-$lastX}] [expr {$y-$lastY}]
set lastX $x
set lastY $y
}
set i [$w create text 25c 18.1c -text "Ouch!!" -fill $color -anchor n]
after 500 "$w delete $i"
}
-