|
Revision 210, 394 bytes
(checked in by why, 11 months ago)
|
|
* shoes/canvas.c: added strong method, macros for INLINE and BLOCK markup.
* shoes/ruby.c: first stab at adding pango attributes during iteration.
|
| Line | |
|---|
| 1 | Shoes.app :height => 150, :width => 250 do |
|---|
| 2 | background rgb(240, 250, 208) |
|---|
| 3 | stack :margin => 10 do |
|---|
| 4 | button "Start" do |
|---|
| 5 | @time = Time.now |
|---|
| 6 | @label.replace "Stop watch started at #@time" |
|---|
| 7 | end |
|---|
| 8 | button "Stop" do |
|---|
| 9 | @label.replace "Stopped, ", strong("#{Time.now - @time}"), " seconds elapsed." |
|---|
| 10 | end |
|---|
| 11 | @label = para "Press ", strong("start"), " to begin timing." |
|---|
| 12 | end |
|---|
| 13 | end |
|---|