On Wed, Dec 05, 2007 at 04:08:20PM +0900, Erik Boling wrote:
> Alright i know that its possible to "getkeys" and set commands for the
> SHOE app. but i can't get it to work i want to replace a button with
> somthing like keypress :enter ::

Oh, Erik, if you want to join the Shoes mailing list, we'll take
good care of you.  Send a message To: shoes / code.whytheluckystiff.net
and CC: why / whytheluckystiff.net and you'll be subscribed.

> in addition, can someone yell me why this doesn't  work, i was
> attempting to clear my edit box.....
> button("Submit Answer") do
>                 if @answerp.text.to_i == answer
>                         answerbox.clear { para "correct" }
>                         wrongbox.clear
>                         @answerp.replace edit_line

A paragraph can't be replaced with an edit_line yet.  And you
probably want to use: answerbox.text = "correct" ... Depends on what
answerbox is.

Post your entire program to the Shoes list and we'll all race to
find an answer.  As long as you keep in mind that nobody knows
Shoes, you'll be just fine.

_why