Created
July 14, 2010 19:21
-
-
Save fela/475896 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 :width => 500 do | |
@s1 = stack :margin_left => 50, :height => 1.0 do | |
background red | |
para "a b c d e f g h i l m n o p q r s t u v a b c d e f g h 1 2 3 4" | |
button "show" do | |
@s1.style(:width => -150) | |
@s2.show | |
end | |
end | |
@s2 = stack :hidden => true, :width => 150 do | |
background blue | |
para "lesson bla bla" | |
button "hide" do | |
@s2.hide | |
@s1.style(:width => 1.0) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment