-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding intro example app from original shoes announcement 'okay, well…
…... shoes'
- Loading branch information
Zachary Scott
committed
Oct 28, 2010
1 parent
55423ac
commit db3aa0a
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# | ||
# From the original Shoes announcement: "Okay, well... Shoes" | ||
# http://github.com/shoes/shoes/wiki/%E2%80%9COkay,-Well...-Shoes%E2%80%9D | ||
# | ||
# had to change "text" to "para" to match shoes 3 api | ||
# | ||
label, time = nil, Time.now | ||
Shoes.app :height => 150, :width => 250 do | ||
background "rgb(240, 250, 208)" | ||
stack :margin => 10 do | ||
start = button "Start" do | ||
time = Time.now | ||
label.replace "Stop watch started at #{time}" | ||
end | ||
stop = button "Stop" do | ||
label.replace "Stopped, #{Time.now - time} seconds elapsed." | ||
end | ||
label = para "Press start to begin timing." | ||
end | ||
end |