Re: Insert position on text widget?
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 30 Aug 2007 15:45:18 GMT
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
.
- Follow-Ups:
- Re: Insert position on text widget?
- From: saulij
- Re: Insert position on text widget?
- References:
- Insert position on text widget?
- From: saulij
- Insert position on text widget?
- Prev by Date: Insert position on text widget?
- Next by Date: Re: Extensive Cheat *** for Tcl/Tk
- Previous by thread: Insert position on text widget?
- Next by thread: Re: Insert position on text widget?
- Index(es):