tk/winfo pointerxy

(tk/winfo 'pointerxy #<widget>)
If the mouse pointer is on the same screen as #<widget>, returns a list with two elements, which are the pointer's x and y coordinates measured in pixels in the screen's root window. If a virtual root window is in use on the screen, the position is computed in the virtual root. If the mouse pointer isn't on the same screen as #<widget> then both of the returned coordinates are -1.

© Author | Home | Sitemap