diff options
author | a_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-27 09:57:21 +0000 |
---|---|---|
committer | a_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-27 09:57:21 +0000 |
commit | ff9b1f7a08c68b373dae61cbad30ac9eeb49d5ae (patch) | |
tree | 9c170e584d31262d1f9030eb402827ad09e5472b /ext/tk/sample/tkballoonhelp.rb | |
parent | 5b2e6867ee1ff4e517376f5ad445e943557d30a8 (diff) | |
download | ruby-ff9b1f7a08c68b373dae61cbad30ac9eeb49d5ae.tar.gz |
Documentation typos
[ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/sample/tkballoonhelp.rb')
-rw-r--r-- | ext/tk/sample/tkballoonhelp.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/tk/sample/tkballoonhelp.rb b/ext/tk/sample/tkballoonhelp.rb index fb811164ab..f6f2c8ab0c 100644 --- a/ext/tk/sample/tkballoonhelp.rb +++ b/ext/tk/sample/tkballoonhelp.rb @@ -4,7 +4,7 @@ # by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) # # Add a balloon help to a widget. -# This widget has only poor featureas. If you need more useful features, +# This widget has only poor features. If you need more useful features, # please try to use the Tix extension of Tcl/Tk under Ruby/Tk. # # The interval time to display a balloon help is defined 'interval' option @@ -157,7 +157,7 @@ if __FILE__ == $0 sb = TkScrollbox.new.pack(:fill=>:x) sb.insert(:end, *%w(aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm)) =begin - # CASE1 : command takes no arguemnt + # CASE1 : command takes no argument bh = Tk::RbWidget::BalloonHelp.new(sb, :interval=>500, :relief=>:ridge, :background=>'white', :command=>proc{ @@ -166,7 +166,7 @@ if __FILE__ == $0 }) =end =begin - # CASE2 : command takes 2 arguemnts + # CASE2 : command takes 2 arguments bh = Tk::RbWidget::BalloonHelp.new(sb, :interval=>500, :relief=>:ridge, :background=>'white', :command=>proc{|x, y| @@ -174,7 +174,7 @@ if __FILE__ == $0 }) =end =begin - # CASE3 : command takes 3 arguemnts + # CASE3 : command takes 3 arguments Tk::RbWidget::BalloonHelp.new(sb, :interval=>500, :relief=>:ridge, :background=>'white', :command=>proc{|x, y, bhelp| @@ -182,7 +182,7 @@ if __FILE__ == $0 }) =end =begin - # CASE4a : command is a Proc object and takes 4 arguemnts + # CASE4a : command is a Proc object and takes 4 arguments cmd = proc{|x, y, bhelp, parent| bhelp.text "current index == #{parent.nearest(y)}" } @@ -199,7 +199,7 @@ if __FILE__ == $0 :command=>cmd) =end #=begin - # CASE4b : command is a Method object and takes 4 arguemnts + # CASE4b : command is a Method object and takes 4 arguments def set_msg(x, y, bhelp, parent) bhelp.text "current index == #{parent.nearest(y)}" end |