[Tkinter-discuss] Cursor coordinates
Michael Lange
klappnase at web.de
Fri Dec 4 20:39:23 CET 2009
Hi,
On Fri, 4 Dec 2009 19:31:07 +0100
"Michael O'Donnell" <michael.odonnell at uam.es> wrote:
> Hi Vasilis,
>
> A general method on all widgets; w.winfo_pointerxy()
>
> Returns a tuple (x, y) containing the coordinates of the mouse
> pointer relative to w's root window.
> If the mouse pointer isn't on the same screen, returns (-1, -1).
>
(...)
I think Vasilis meant how to find the coords of the text's insertion
cursor, not the mouse pointer coords ? I don't know if this is possible
though.
Michael
More information about the Tkinter-discuss
mailing list