On Thu, 13 Jan 2005 13:07:44 +0900, you wrote: >If you know the widget path on the tcl script and don't need to use >the Tcl code associated -command option, those are very easy. ok :) > txt = TkText.new(:widgetname=>'.baz.txt', :without_creating=>true) i got this far from the code you posted previously > def show_text(txt) > p txt.value > end > b = TkButton.new(:widgetname=>'.foo.bar.btn', :without_creating=>true) > b.command(proc{ show_text(txt) }) # or b.command{ show_text(txt) } > Tk.mainloop this is pretty much exactly what i wanted. much simpler than the code you posted earlier... http://home.cogeco.ca/~tsummerfelt1 telnet://ventedspleen.dyndns.org