From: Hidetoshi NAGAI Date: 2005-07-18T08:01:02+09:00 Subject: Re: ] Re: Ruby has ruined my Java From: Kero Subject: Re: ] Re: Ruby has ruined my Java (was Re: Ruby has ruined my C++) Date: Mon, 18 Jul 2005 07:05:53 +0900 Message-ID: > and in Ruby/Tk you do: > > b = TkButton.new(nil, "text"=>"quit").pack > b.command { exit } Or, b = TkButton.new(nil, :text=>'quit', :command=>proc{exit}).pack Why did you write it in two lines? ;-) -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)