From: Hidetoshi NAGAI Date: 2009-05-17T03:28:12+09:00 Subject: Re: Ruby/Tk From: "graycardinalster@gmail.com" Subject: Ruby/Tk Date: Fri, 15 May 2009 23:45:07 +0900 Message-ID: <00f13bf8-211a-4a9c-8355-b6f30a38856a@z19g2000vbz.googlegroups.com> > How to get @edit value after "top" is closed ? One of the simple solution is to use a TkVariable and 'textvariable' option of an entry widget. ------------------------------------------ @edit_var = TkVariable.new @edit = TkEntry.new(top, :textvariable=>@edit_var).pack : cmd = proc{ puts @edit_var.value } ------------------------------------------ -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)