Saturday, August 21, 2010

My First Ruby GUI application, using Shoes

Here is my first Ruby GUI app, using Shoes.

# hello.rb
# do
  para 'Hello World'

Execute it (from shell).
$ shoes hello.rb

This opens a window, displaying the text.

Another way to run it is to drag and drop the ruby file over an icon (link) of Shoes on the Ubuntu desktop.

No comments:

Post a Comment