Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nashby committed Mar 23, 2012
1 parent 7e41617 commit 53a1ab9
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions README.md
Expand Up @@ -19,19 +19,21 @@ Everybody loved Shoes. Many apps were made, and put into [The Shoebox](http://th


Here's a little Shoes app. It's a stopwatch! Here's a little Shoes app. It's a stopwatch!


Shoes.app :height => 150, :width => 250 do ```ruby
background rgb(240, 250, 208) Shoes.app :height => 150, :width => 250 do
stack :margin => 10 do background rgb(240, 250, 208)
button "Start" do stack :margin => 10 do
@time = Time.now button "Start" do
@label.replace "Stop watch started at #@time" @time = Time.now
end @label.replace "Stop watch started at #@time"
button "Stop" do
@label.replace "Stopped, ", strong("#{Time.now - @time}"), " seconds elapsed."
end
@label = para "Press ", strong("start"), " to begin timing."
end
end end
button "Stop" do
@label.replace "Stopped, ", strong("#{Time.now - @time}"), " seconds elapsed."
end
@label = para "Press ", strong("start"), " to begin timing."
end
end
```


Here's what it looks like: Here's what it looks like:


Expand Down

0 comments on commit 53a1ab9

Please sign in to comment.