a guest Feb 21st, 2018 51 Never
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 + "."
- @len = para ""
RAW Paste Data