From: Michael N. <mn...@ci...> - 2003-11-12 22:32:26
|
hi, Is there a way to retrieve local coordinates of a canvas widget? For instance, canvas .window -height 480 -width 640 pack .window If I do the following, using a mouse to display the mouse coordinates. bind .window <Motion> { puts "[winfo pointerxy .tk_draw_canvas]"} Displays the global mouse coordinates in the console window. Do I need to handle the mapping myself or is there a way to handle the coordinates local to the widget? thanks, Mike |