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 | d951f6555b1ff1e66e8edad2bdeb9e386c67951e (patch) | |
| tree | a9b60dec20fa5f7f52ca7c8113195f2d65728a22 /sample/tkhello.rb | |
| parent | 986c389e3116bc5746e8b2072de5e39b4c6719f1 (diff) | |
| download | ruby-d951f6555b1ff1e66e8edad2bdeb9e386c67951e.tar.gz ruby-d951f6555b1ff1e66e8edad2bdeb9e386c67951e.tar.xz ruby-d951f6555b1ff1e66e8edad2bdeb9e386c67951e.zip | |
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: http://svn.ruby-lang.org/repos/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 1ff1403e7..5188fe1c8 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 |
