From: takaoueda@... (Takao Ueda) Date: 2004-11-25T14:47:59+09:00 Subject: Re: Ruby+Tk+HTML Example It seems the syntax of Ruby+Tk in Erb is more rigorous than in Ruby. Here is another snippet that works. This is a substitute for the inside of if-end statement in the previous example. <%message = TkVariable.new%> <%"padx 20; pady 20"%> <%TkLabel.new {%> <%text 'Enter a message:'%> <%pack {ph}%> <%}%> <%entry = TkEntry.new{%> <%textvariable message%> <%}%> <%entry.pack{ ph }%> <%TkButton.new {%> <%text content%> <% command proc {p "Thank you"; exit}%> <%pack { ph }%> <%}%> <%TkButton.new {%> <%text 'Exit'%> <% command proc {p message.value; exit}%> <% pack { ph }%> <%}%> <%Tk.mainloop%> Takao