| | |
Reporting X Y coordinates of mouse pointer
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
![]() |
I'd really like to be able to ask my program "where is the mouse pointer?" at any given time.
Ideally I'll want people to click and hold a button, which will cause a stream of events to occur, and then (at varying points) the program should find out where their mouse pointer is (while they are still holding down the button).
Is this possible? I've looked into the Canvas widget and feel that the answer must be there, but haven't been able to find it.
Ideally I'll want people to click and hold a button, which will cause a stream of events to occur, and then (at varying points) the program should find out where their mouse pointer is (while they are still holding down the button).
Is this possible? I've looked into the Canvas widget and feel that the answer must be there, but haven't been able to find it.
![]() |
Other Threads in the Python Forum
- Previous Thread: Capturing sound
- Next Thread: regression line and loops
| Thread Tools | Search this Thread |
advanced aliased bash beginner bits calling casino changecolor class clear command convert corners count csv cturtle cursor def definedlines dictionary digital dynamic dynamically event events examples external file float format frange function google gui hints homework i/o iframe import info input java line linux list lists loop matching mouse multiple number numbers obexftp output parsing path port prime programming projects py py2exe pygame pygtk python random rational raw_input recursion return scrolledtext signal singleton skinning stderr string strings subprocess table tails terminal text thread threading time tkinter tlapse tuple tutorial ubuntu unicode urllib urllib2 valueerror variable voip web-scrape whileloop word wxpython






