From: Jeppe Jakobsen Date: 2006-04-16T05:21:35+09:00 Subject: Re: Q about tk buttons ------=_Part_5444_24686704.1145132492510 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Ah ok, thanks. >Gary: That is because the variable you use is a Ruby variable, but mine is a Tk variable. 2006/4/15, Hidetoshi NAGAI : > > From: "Jeppe Jakobsen" > Subject: Re: Q about tk buttons > Date: Fri, 14 Apr 2006 22:16:49 +0900 > Message-ID: <99b4ad3b0604140616j345b9266jf8cad5e4b862dad3@mail.gmail.com> > > But I don't understand this line though > > >entry.bind('Return', proc{button.invoke}) > > It is an additional binding for 'Return' key press on the entry widget. > When input a number and hit 'Return', you'll get the same result > as clicking the button. > -- > Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) > > -- "winners never quit, quitters never win" ------=_Part_5444_24686704.1145132492510--