Shoes GUI Toolkit Demonstration Apps
A collection of small apps for demonstrating the features of Shoes GUI toolkit.
Suitable for presentation at lectures, user group meetings, etc.
Basics: drawing shapes on screen. Shoes as domain-specific language (DSL).
2/ Shapes and Colors
Drawing with colors. More DSL.
animate method. Calculations.
Basics: clicking invokes associated block.
5/ Interactivity with objects
Shoes::Widget extends Shoes' DSL with our own methods. Handle
Inspiration in HTML.
Forms are as easy in Shoes as in HTML.
8/ Live Interface
Let's send the form data to a Rails application running at
http://localhost:3000 and display the response status. See the simple Rails app in
A bit more complex example: a simple "uploader" sending one or more files with
Net::HTTP to a Sinatra application (see
sinatra_upload_service.rb), which receives files and saves them to
uploads directory. Demonstrates more complex interface, working with progress bars in Shoes, using threads. (Obviously, in real world application you would do multipart requests, proxy the uploading webservice, etc.)
Released under MIT license. Use anything in whatever manner you like.