Get current cursor position in ScrolledText

Eric Brunel eric.brunel at pragmadev.com
Tue Feb 5 04:40:18 EST 2002


Hi Andrea,

> But if i bind an event to every
> possible key (e.g. <Key-A>) and i make a <ScrolledTextName>.get() i
> get the content of the ScrolledText before the 'A'-insertion happens.

I think all you've got to do is to bind on the events <KeyRelease-a>, 
<KeyRelease-b>, and so on. Your binding should then be called after the 
character(s) insertion.

HTH
 - eric -



More information about the Python-list mailing list