tk/winfo pointery

(tk/winfo 'pointery #<widget>)
If the mouse pointer is on the same screen as #<widget>, returns the pointer's y coordinate, 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 -1 is returned.

© Author | Home | Sitemap