daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Feb 21st, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top