2 tcl questions
Peter L. Peres
plp-ysDPMY98cNQDDBjDh4tngg at public.gmane.org
Mon Nov 15 19:46:42 UTC 2004
Hi all, how do I (tk 8.4):
1) make a grid packed widget resize (expand) with the master. This type of
code fails:
frame .f
pack .f -expand yes -fill both
text .f.t
grid .f.t -in .f -sticky nsew
the text does not resize with the frame
2) obtain the number of lines in a text widget. To my surprise retrieveing
text from a text widget using .t get $l.0 $l.end does not return the '\n'.
So stopping short of getting the whole text and counting the newlines,
what can be done ?
tia,
Peter
--
The Toronto Linux Users Group. Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml
More information about the Legacy
mailing list