Created
May 25, 2010 04:36
-
-
Save apiguy/412762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "kiddo" | |
Kiddo.start do | |
draw :stack do | |
draw :text, "Text to reverse:", :font_size => 18 | |
draw :edit_box, :named => "input" | |
draw :text, "Your string will show up here.", :named => "result" | |
draw :button, "Reverse It!", :named => "fun_button" | |
end | |
after :fun_button.is_clicked do | |
:result.text = :input.text.reverse | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment