[ltk-user] Entry index

Vadim vadim at vkonovalov.ru
Tue May 8 12:18:49 UTC 2007


mandeep singh wrote:

> If you use tags then you must deal with "line.char" indices - there is no
> way to refer to parts of the text without doing so. i was using
> (concantate
> "1." string-index) for tags before - until i realised it wouldnt hold for
> lines other than the first one.


You're probably mixing "Text" and "Entry"?
"entry" widget is always one-line in Tcl/Tk
"text" widget as much lines as you want.

I'm not expert in ltk, but I expect there is 1-to-1 correspondence
between them

>
> On 5/8/07, Vadim <vadim at vkonovalov.ru> wrote:
>
>>
>> mandeep singh wrote:
>>
>> > i've got a bit of a problem. I need to use the index function of the
>> > Entry
>> > widget to get back a line.char structure. but there doesnt seem to be
>> any
>> > support for this, yet, so i thought to write it but i dont know the
>> > procedure to get ouput from wish. any help appreciated. thanks!
>>
>>
>> in Tcl/Tk "Text" widget index has "line.char" but Entry has just
>> numerical value.
>> if you insist in having same format, then concatenate it with "1.", but
>> I don't understand how this could be useful.
>>
>> Best regards,
>> Vadim.
>>
>> _______________________________________________
>> ltk-user site list
>> ltk-user at common-lisp.net
>> http://common-lisp.net/mailman/listinfo/ltk-user
>>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>ltk-user site list
>ltk-user at common-lisp.net
>http://common-lisp.net/mailman/listinfo/ltk-user
>





More information about the ltk-user mailing list