Guest User

Untitled

a guest
Feb 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. # tiny shoes app that tells the length of some text
  2.  
  3. Shoes.app :title => 'strlen', :width => 300, :height => 125 do
  4. background "#CFC".."AFA"
  5. stack :margin => 10 do
  6. para "Enter some text here"
  7. @text = edit_line
  8. every 0.1 do
  9. @len.replace "The length of the text entered is " + @text.text.length.to_s + "."
  10. end
  11. @len = para ""
  12. end
  13. end
Add Comment
Please, Sign In to add comment