Re: Insert position on text widget?



saulij wrote:
How can i get current insert position (line) from tk text widget?

Sauli

set insert [$textWidget index insert]
set line [lindex [split $insert .] 0]

--
Bryan Oakley
http://www.tclscripting.com
.


Quantcast