Keep It Simple, Stupid | |
PerlMonks |
Tk and mouse positionby Popcorn Dave (Abbot) |
on May 01, 2002 at 05:57 UTC ( [id://163212]=perlquestion: print w/replies, xml ) | Need Help?? |
Popcorn Dave has asked for the wisdom of the Perl Monks concerning the following question:
Fellow monks,
I am in need of a gentle nudge in the right direction here. Can anyone be so kind as to point me in the direction of some sample code or docs on how to find the cursor's position on a canvas, relative to the top left corner (0,0) in Tk? I am currently playing with event and $widget->x and $widget->y but haven't got very far at all. I have looked through the Tk docs and event was the closest thing I can find to use as a starting point. I have also looked on CPAN but all I found was an interface for the Qt toolkit. Anyone have any leads or done something like this? Is it even posible?
Back to
Seekers of Perl Wisdom
|
|