Re: Insert position on text widget?



Bryan Oakley wrote:
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]

Works fine.

Thanks

Sauli
.


Quantcast