Sha256: 1f5a31cf295846ff716785be0dbd99539451c1dc27572b03a1540fcac1116840

Contents?: true

Size: 868 Bytes

Versions: 6

Compression:

Stored size: 868 Bytes

Contents

Shoes.app :width => 320, :height => 420 do
  background "../static/menu-gray.png"
  background "../static/menu-top.png", :height => 50
  background "../static/menu-left.png", :top => 50, :width => 55
  background "../static/menu-right.png", :right => 0, :top => 50, :width => 55
  image "../static/menu-corner1.png", :top => 0, :left => 0
  image "../static/menu-corner2.png", :right => 0, :top => 0

  stack :margin => 40 do
    stack :margin => 10 do
      para "Name"
      @name = list_box :items => ["Phyllis", "Ronald", "Wyatt"]
    end
    stack :margin => 10 do
      para "Address"
      @address = edit_line
    end
    stack :margin => 10 do
      para "Phone"
      @phone = edit_line
    end
    stack :margin => 10 do
      button "Save" do
        Shoes.p [@name.text, @address.text, @phone.text]
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
shoesgem-0.1480.0 shoes/samples/simple-form.rb
shoesgem-0.1469.0 shoes/samples/simple-form.rb
shoesgem-0.1430.0 shoes/samples/simple-form.rb
shoesgem-0.1429.0 shoes/samples/simple-form.rb
shoesgem-0.1428.0 shoes/samples/simple-form.rb
shoesgem-0.1426.0 shoes/samples/simple-form.rb