Sha256: 13e8b410d67fde82452d9528a42e830d9c1eb92b0d7e92ccfb1d46b58f630470

Contents?: true

Size: 596 Bytes

Versions: 15

Compression:

Stored size: 596 Bytes

Contents

Shoes.app :width => 300, :height => 150, :margin => 10 do
  def answer(v)
    @answer.replace v.inspect
  end

  button "Ask" do
    answer ask("What is your name?")
  end
  button "Confirm" do
    answer confirm("Would you like to proceed?")
  end
  button "Open File..." do
    answer ask_open_file
  end
  button "Save File..." do
    answer ask_save_file
  end
  button "Open Folder..." do
    answer ask_open_folder
  end
  button "Save Folder..." do
    answer ask_save_folder
  end
  button "Color" do
    answer ask_color("Pick a Color")
  end

  @answer = para "Answers appear here"
end

Version data entries

15 entries across 9 versions & 4 rubygems

Version Path
scarpe-0.4.0 examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb
scarpe-0.3.0 examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb
scarpe-0.2.2 examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb
lacci-0.2.1 examples/legacy/not_checked/simple/dialogs.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-dep-samples/simple-dialogs.rb
lacci-0.2.1 examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-dep-samples/simple-dialogs.rb
scarpe-0.2.1 examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb
scarpe-0.2.1 examples/legacy/not_checked/simple/dialogs.rb
scarpe-0.2.0 examples/legacy/not_checked/simple/dialogs.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-dep-samples/simple-dialogs.rb
scarpe-0.2.0 examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb
shoes-3.0.1 samples/simple-dialogs.rb
shoesgem-0.1514.0 shoes/samples/simple-dialogs.rb
shoesgem-0.1424.0 shoes/samples/simple-dialogs.rb