Skip to content

Instantly share code, notes, and snippets.

@jmhodges
Created September 24, 2008 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmhodges/12501 to your computer and use it in GitHub Desktop.
Save jmhodges/12501 to your computer and use it in GitHub Desktop.
Shoes.app do
stack do
@scrolling_log = stack do
para "Something Cool"
end
flow do
@add = edit_line
button("Add", :margin_left => 5) do
add_event(@add.text)
@add.text = ''
end
end
end
def add_event(event)
@scrolling_log.append do
para event
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment