Now, in your blank window, type in the following:
require 'green_shoes' Shoes.app do para "Welcome to Shoes" end
Save to your desktop as
To run your program, just open console window and run the following.
So, not much of a program yet. But it's something! You've got the knack of it, at least!
Well, you can make windowing applications. But Shoes is inspired by the web, so applications tend to use images and text layout rather than a lot of widgets. For example, Shoes doesn't come with tabbed controls or toolbars. Shoes is a tiny toolkit, remember?
Still, Shoes does have a few widgets like buttons and edit boxes. And many missing elements (like tabbed controls or toolbars) can be simulated with images.
Shoes is written in part thanks to a very good art engine called Cairo, which is used for drawing with shapes and colors. Also thanks to an awesome text lay out engine called Pango. In this way, Shoes is inspired by NodeBox and Processing, two very good languages for drawing animated graphics.
Next: The Rules of Green Shoes