Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Collection of tiny apps to demonstrate Shoes GUI toolkit at lectures, user group meetings, etc
Ruby Python
tree: 3375e0a848

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets
letters
rails_people
.gitignore
01_shapes.rb
02_shapes_and_colors.rb
03_animations.rb
04_interactivity.rb
05_interactivity_with_objects.rb
06_layout.rb
07_interface.rb
08_live_interface.rb
09_uploader.rb
Balls__for_Nodebox.py
README.markdown
sinatra_upload_service.rb

README.markdown

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.

1/ Shapes

Basics: drawing shapes on screen. Shoes as domain-specific language (DSL).

2/ Shapes and Colors

Drawing with colors. More DSL.

3/ Animations

The animate method. Calculations.

4/ Interactivity

Basics: clicking invokes associated block.

5/ Interactivity with objects

Subclassing Shoes::Widget extends Shoes' DSL with our own methods. Handle click and release.

6/ Layout

Inspiration in HTML.

7/ Interface

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 rails_people directory.

9/ Uploader

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.

Something went wrong with that request. Please try again.