Created
September 24, 2008 07:52
-
-
Save jmhodges/12501 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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