Created
March 22, 2016 22:57
-
-
Save anonymous/3b4d2475eebbf2ab9fe3 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, :height => 500, :title => "KinCom" do | |
@para = para "Please load some data" | |
flow do | |
@box = edit_box width: 200, height: 200, :text => @para | |
end | |
flow do | |
@b0 = button "Load" do | |
f = File.open("tester.txt", "r"); @text = f.read | |
end | |
@b1 = button "Mjello?" | |
@b1.click {@para.replace @text} | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment