Sha256: 01283c255191ef8ac13cae0e788ca998c41933c94d7fdf8c2018a7133c86bedf

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

#
# Example from Getting Started with Shoes on OS X blog post found here:
# http://lethain.com/entry/2007/oct/15/getting-started-shoes-os-x/
#
shape = nil
Shoes.app do
  stack :width => 400, :height => 200, :margin => 50 do
    shape = list_box :items => ["Square", "Oval", "Rectangle"]
    button "Report" do
      para [shape.text]
    end
    para "Just some filler text"
  end
  flow :margin => 10 do
    para "Text"
    para "More"
    para "Less"
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
scarpe-0.4.0 examples/legacy/working/simple/list_box-shape-report.rb
scarpe-0.3.0 examples/legacy/working/simple/list_box-shape-report.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes-contrib/basic/list_box-shape-report.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-contrib/basic/list_box-shape-report.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-contrib/basic/list_box-shape-report.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-contrib/basic/list_box-shape-report.rb