List Info

Thread: Canvas cursor position




Canvas cursor position
user name
2006-11-18 22:29:35
Dear all,

in my application I am using editable text items inside a
Canvas with 
the Canvas.create_text().
My problem is how to find the position (x,y) of the insert
cursor from 
an editable text item in a canvas, so when the cursor
goes out of the window to scroll the canvas to see the
cursor?
While I can set the cursor with
Canvas.icursor(item,"%d,%d"%(x,y)), I 
cannot get back the x,y position with the function
Canvas.index(item, 
index). It returns only a numerical index of the cursor
position.

Vasilis
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discusspython.org
http://mail.python.org/mailman/listinfo/tkinter-discuss
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )