Sha256: eb5057429b331fd37fb43bce36851cc91aaf93c2cc6668fd9652e73501d4dfcc
Contents?: true
Size: 387 Bytes
Versions: 2
Compression:
Stored size: 387 Bytes
Contents
Shoes.app height: 150, width: 250 do background rgb(240, 250, 208) stack margin: 10 do button "Start" do @time = Time.now @label.replace "Stop watch started at #@time" end button "Stop" do @label.replace "Stopped, ", strong("#{Time.now - @time}"), " seconds elapsed." end @label = para "Press ", strong("start"), " to begin timing." end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoes-4.0.0.pre2 | samples/simple-timer.rb |
shoes-4.0.0.pre1 | samples/simple-timer.rb |