Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # tiny shoes app that tells the length of some text
- Shoes.app :title => 'strlen', :width => 300, :height => 125 do
- background "#CFC".."AFA"
- stack :margin => 10 do
- para "Enter some text here"
- @text = edit_line
- every 0.1 do
- @len.replace "The length of the text entered is " + @text.text.length.to_s + "."
- end
- @len = para ""
- end
- end
Add Comment
Please, Sign In to add comment