From: Massimiliano Mirra Date: 2002-07-18T18:49:29+09:00 Subject: Re: TkText no -textvariable workaround? On Wed, Jul 17, 2002 at 11:32:18AM +0900, Tom Sawyer wrote: > On Tue, 2002-07-16 at 19:52, nagai@ai.kyutech.ac.jp wrote: > > Why are TkText#value and TkText#value= method > > not enough in your purpose? > > my intention was to create a mixin module that by merely being mixed-in > would tie the object's instance variables to a tk gui form. thus when a > variable changes the form changes and vice-versa, automatically > --without having to add any special code to the object itself. /me sighs remembering when he did that with good ol' Delphi I've no experience of Tk, moreover I did not follow the thread from the beginning, so apologies in advance. Does anything prevent you to extend the TkText object with a new setter method that also triggers refresh? class TkText def my_value=(text) # set the text # trigger refresh end end Anyway, a noble purpose, especially for people (like me!) not too fond of writing GUI code. Let us (or the RAA) know about your results! Massimiliano