I have found that that error usually goes away when you put parentheses
around the button text:

button('Test') {
  alert "Boo"
}

On Thu, Sep 18, 2008 at 4:34 PM, Joshua Choi <[EMAIL PROTECTED]> wrote:

> The following code does not work:
>
>        Shoes.app do
>                stack do
>                        button 'Test' {
>                                alert "Boo"
>                        }
>                end
>        end
>
> The error is from lib/shoes.rb line 359:
>  compile error
>  test.rb:4: syntax error, unexpected '{', expecting kEND
>  test.rb:6: syntax error, unexpected '}', expecting kEND
>
> A similar error occurs with the following:
>
>        Shoes.app do
>                stack {
>                        button 'Test' {
>                                alert "Boo"
>                        }
>                }
>        end
>
> Shoes r970 Mac OS X.
>
> Sincerely,
> Joshua Choi
>

Reply via email to