Created
December 20, 2013 17:06
-
-
Save jasonrclark/8057998 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: 501, height: 300 do | |
flow width: 0.25, height: 250 do | |
button "A button" do | |
@para.cursor = 200 | |
end | |
#para "links, yeah!" #link("links, yeah!") { alert("yeah!!!") } | |
end | |
keypress do |k| | |
alert k | |
end | |
#line 100, 100, 100, 125 | |
flow width: 0.75, height: 1.0 do | |
background green | |
#button "A button", width: 150 | |
#button "A button", width: 150 | |
button "A button", width: 150 do | |
@para.cursor = nil | |
end | |
@para = para link('One paragraph ' * 1) {alert("yo")}, :size => 18 | |
@para.cursor = 1 | |
button "A button" do | |
@para.text = @para.text * 2 | |
end | |
end | |
click do |_, x, y| | |
puts "#{x}, #{y}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment