Get current cursor position in ScrolledText

Andrea andrea at proceryon.at
Tue Feb 5 02:04:46 EST 2002


I've got following problem:

I have a ScrolledText in which i can insert different characters
(a,b,c, etc.).
On every seperate insert i need the cursor-position and the current
length of all characters together. 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.
So the problem is if i paste a longer text i've no possibility to get
the real length after insertion.
Do anybody know how i can evade this problem?

TIA, Andrea



More information about the Python-list mailing list