win32api.SetCursorPos() question

Fredrik Lundh fredrik at pythonware.com
Sun Sep 19 14:48:21 EDT 2004


Gary Richardson wrote:

> I'm using a Tk Canvas window to display various objects, one of which can be
> a block of text entered from the keyboard. The user positions the cursor to
> the desired position and begins typing, terminating the entry by pressing
> the Esc key. From that point the text block can be manipulated (moved,
> copied or deleted) by means of the mouse. As it is now, during text entry,
> there is no indication of where the next character is to be entered. So I
> thought it would be nice if I could indicate the insertion point as is usual
> with text entry programs, editors, etc.

that's what the icursor method is there for.   see:

    http://effbot.org/zone/editing-canvas-text-items.htm

</F> 






More information about the Python-list mailing list