diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-01-16 12:19:22 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-01-16 12:19:22 +0000 |
commit | 7ea2ceddb832b9973694fecac9fe3c30400735ba (patch) | |
tree | a9b60dec20fa5f7f52ca7c8113195f2d65728a22 /sample/tkhello.rb | |
parent | 62e41d3f2e48422bbdf1bb2db83ae60b255b1a1a (diff) | |
download | ruby-7ea2ceddb832b9973694fecac9fe3c30400735ba.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r11,
which included commits to RCS files with non-trunk default branches.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample/tkhello.rb')
-rw-r--r-- | sample/tkhello.rb | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/sample/tkhello.rb b/sample/tkhello.rb index 1ff1403e71..5188fe1c8c 100644 --- a/sample/tkhello.rb +++ b/sample/tkhello.rb @@ -1,13 +1,10 @@ require "tk" -TkButton.new { - text 'hello' - command proc{print "hello\n"} - pack('fill'=>'x') -} -TkButton.new { - text 'quit' - command 'exit' - pack('fill'=>'x') -} +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 |