| | |
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 |
Tag cloud for Python
accessdenied apache application argv array beginner book change code color converter dan08 dictionary dynamic edit editing enter examples excel file filename float format ftp function gui homework import inches input java keyboard lapse library line lines linux list lists loop microphone mouse movingimageswithpygame mysql newb number numbers numeric output parameters parsing path phonebook port prime programming projects py2exe pygame pyopengl pyqt python random recursion recursive redirect remote reverse scrolledtext session simple smtp software sprite ssh statictext string strings syntax table tennis terminal text thread threading time tkinter tlapse trick tuple tutorial ubuntu unicode unit urllib urllib2 variable windows wordgame wxpython






