Function tooltip::enableCanvas is called for every tooltip assigned to every item.
It does:
$w bind all <Enter> +[namespace code [list itemTip $w]]
.....
So it adds a command to the binding for every item. It is not correct. The solution is to check if the canvas has already been enabled:
proc ::tooltip::enableCanvas {w args} {
if { [string first itemTip [$w bind all <Enter>]] != -1 } { return }
$w bind all <Enter> +[namespace code [list itemTip $w]]
$w bind all <Leave> +[namespace code [list hide 1]] ; # fade ok
$w bind all <Any-KeyPress> +[namespace code hide]
$w bind all <Any-Button> +[namespace code hide]
}
|