diff options
Diffstat (limited to 'ext/tk/sample/tkhello.rb')
| -rw-r--r-- | ext/tk/sample/tkhello.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/sample/tkhello.rb b/ext/tk/sample/tkhello.rb index ab236963e..3b505f498 100644 --- a/ext/tk/sample/tkhello.rb +++ b/ext/tk/sample/tkhello.rb @@ -1,10 +1,10 @@ require "tk" TkButton.new(nil, - 'text' => 'hello', - 'command' => proc{print "hello\n"}).pack('fill'=>'x') + :text => 'hello', + :command => proc{print "hello\n"}).pack(:fill=>'x') TkButton.new(nil, - 'text' => 'quit', - 'command' => proc{exit}).pack('fill'=>'x') + :text => 'quit', + :command => proc{exit}).pack(:fill=>'x') Tk.mainloop |
