[Tkinter-discuss] Cursor coordinates

Michael Lange klappnase at web.de
Fri Dec 4 21:54:46 CET 2009


On Fri, 4 Dec 2009 19:49:02 +0000
Cameron Laird <Cameron at phaseit.net> wrote:

> On Fri, Dec 04, 2009 at 08:39:23PM +0100, Michael Lange wrote:
> 			.
> 			.
> 			.
> > 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.
> 			.
> 			.
> 			.
> I haven't kept up:  is there a question about the Tkinter.INSERT
> index?
> 
>     import Tkinter
>     a = Tkinter.Text()
>     a.pack()
>     a.index(Tkinter.INSERT)
>     '1.0'

It's about how to find the coords (x, y) of the insertion cursor in a
canvas text object.

Michael


More information about the Tkinter-discuss mailing list