From: Peter Hickman Date: 2002-07-16T23:29:09+09:00 Subject: Re: TkText no -textvariable workaround? Tom Sawyer wrote: >well, i've been busy adding tk support to my gui template tool (Miter), >but i've sadly come across a limitation with the TkText widget. it >dosen't support -textvariable, hence there's no way to bind it to a ruby >instance variable, as i can with all the other widgets. i did figure out >a way of automatically set the instance varaible when the TkText value >changes using bind. but i can not find a way to do the reverse. how do i >get the TkText's value to automatically change when the instance >variable does? i looked to see if there's was a ruby callback method for >such, but i didn't find one. anyone? > With TkText you go... @text = TkText.new(... blah blah blah ...) and then later on you can go @text.value @text.delete(1.0,'end') and all that jazz. is that what you wanted?