Skip to content

Instantly share code, notes, and snippets.

@apiguy
Created May 25, 2010 06:36
Show Gist options
  • Save apiguy/412852 to your computer and use it in GitHub Desktop.
Save apiguy/412852 to your computer and use it in GitHub Desktop.
require "kiddo"
Kiddo.start do
screen :named => "image_screen" do
draw :stack do
draw :image, "Penguins.jpg"
draw :button, "See info", :named => "see_info"
end
end
screen :named => "info_screen" do
draw :stack do
draw :text, "There are penguins in the picture."
draw :button, "See image", :named => "see_image"
end
end
draw :image_screen
after :see_info.is_clicked do
draw :info_screen
end
after :see_image.is_clicked do
draw :image_screen
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment