Saturday, August 21, 2010

Another Shoes app - Exit

Here is another simple Shoes app.

It opens a window with a single button "Exit".
When it is clicked, application quits.

# exit.rb
#
Shoes.app do 
  button 'Exit' do
    exit
  end
end

Now run it.
$ shoes exit.rb

No comments:

Post a Comment