in reply to Re: Tk tagBind problem
in thread Tk tagBind problem
This is why I think using anonymous subs for callbacks is a bad thing - especially when created dynamically like this. Too much potential for action at a distance. I prefer the nice, predictable method of passing an anonymous array to the callback mechanism and letting Tk deal with that. Besides, the fact that the callback then passes the parent widget's ref to the subroutine with this method is immensly useful sometimes. (For example using dynamic callbacks with multiple canvas methods, each of which could use the same callback sub and potential share the same tag name.)
|
|---|