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 | fd1d8cdc09ed86e4a0812120a17ff0d7b04adcaf (patch) | |
tree | 341289a84a427f1e92425c7ebf82d2f1733e9a40 /sample/tkhello.rb | |
parent | f12baed5df6d3c213dd75d2f0d9f36bb179fb843 (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/RUBY@11 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 |