tk/winfo pointerx

(tk/winfo 'pointerx #<widget>)
If the mouse pointer is on the same screen as #<widget>, returns the pointer's x coordinate, measured in pixels in the screen's root window. If a virtual root window is in use on the screen, the position is measured in the virtual root. If the mouse pointer isn't on the same screen as #<widget> then -1 is returned.

© Author | Home | Sitemap