diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-11-17 09:12:50 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-11-17 09:12:50 +0000 |
commit | 8271cacad706ed0d7741889faebb0c19270b8370 (patch) | |
tree | edf2f74b145f81822640b282fdc13e282da99e2b /ext/tk/sample/tkhello.rb | |
parent | ee5ab9cc136baf18756abc6bd5d136a0231f973e (diff) |
1.1c8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tkhello.rb')
-rw-r--r-- | ext/tk/sample/tkhello.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/tk/sample/tkhello.rb b/ext/tk/sample/tkhello.rb new file mode 100644 index 0000000000..5188fe1c8c --- /dev/null +++ b/ext/tk/sample/tkhello.rb @@ -0,0 +1,10 @@ +require "tk" + +TkButton.new(nil, + 'text' => 'hello', + 'command' => proc{print "hello\n"}).pack('fill'=>'x') +TkButton.new(nil, + 'text' => 'quit', + 'command' => 'exit').pack('fill'=>'x') + +Tk.mainloop |