diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb index 7fe2fb0878..67ea8ead46 100644 --- a/ext/tk/lib/tk.rb +++ b/ext/tk/lib/tk.rb @@ -913,7 +913,7 @@ end def install_win(ppath,name=nil) if name if name == '' - raise ArgumentError, "invalid wiget-name '#{name}'" + raise ArgumentError, "invalid widget-name '#{name}'" end if name[0] == ?. @path = '' + name diff --git a/ext/tk/sample/demos-en/floor.rb b/ext/tk/sample/demos-en/floor.rb index b22ccecfd2..4b77ea6a8a 100644 --- a/ext/tk/sample/demos-en/floor.rb +++ b/ext/tk/sample/demos-en/floor.rb @@ -1,7 +1,7 @@ # frozen_string_literal: false # floor.rb # -# This demonstration script creates a canvas widet that displays the +# This demonstration script creates a canvas widget that displays the # floorplan for DEC's Western Research Laboratory. # # floorDisplay widget demo (called by 'widget') diff --git a/ext/tk/sample/demos-en/floor2.rb b/ext/tk/sample/demos-en/floor2.rb index a95bfedbfd..518dd3b0fd 100644 --- a/ext/tk/sample/demos-en/floor2.rb +++ b/ext/tk/sample/demos-en/floor2.rb @@ -1,7 +1,7 @@ # frozen_string_literal: false %# floor2.rb # -# This demonstration script creates a canvas widet that displays the +# This demonstration script creates a canvas widget that displays the # floorplan for DEC's Western Research Laboratory. # # floorDisplay widget demo (called by 'widget') diff --git a/ext/tk/sample/demos-en/puzzle.rb b/ext/tk/sample/demos-en/puzzle.rb index 6cf502fcf5..edefa66d73 100644 --- a/ext/tk/sample/demos-en/puzzle.rb +++ b/ext/tk/sample/demos-en/puzzle.rb @@ -4,7 +4,7 @@ # This demonstration script creates a 15-puzzle game using a collection # of buttons. # -# widet demo 'puzzle' (called by 'widget') +# widget demo 'puzzle' (called by 'widget') # # toplevel widget diff --git a/ext/tk/sample/demos-en/textpeer.rb b/ext/tk/sample/demos-en/textpeer.rb index c3298e2caa..26f8f9f9b9 100644 --- a/ext/tk/sample/demos-en/textpeer.rb +++ b/ext/tk/sample/demos-en/textpeer.rb @@ -11,7 +11,7 @@ end # demo toplevel widget $textpeer_demo = TkToplevel.new {|w| - title("Text Wdget Peering Demonstration") + title("Text Widget Peering Demonstration") iconname("textpeer") positionWindow(w) } diff --git a/ext/tk/sample/demos-jp/puzzle.rb b/ext/tk/sample/demos-jp/puzzle.rb index 61fb4cbf60..8a0803ad3d 100644 --- a/ext/tk/sample/demos-jp/puzzle.rb +++ b/ext/tk/sample/demos-jp/puzzle.rb @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- # frozen_string_literal: false # -# widet demo 'puzzle' (called by 'widget') +# widget demo 'puzzle' (called by 'widget') # # toplevel widget が存在すれば削除する diff --git a/ext/tk/sample/demos-jp/textpeer.rb b/ext/tk/sample/demos-jp/textpeer.rb index 31e467afef..341e6218b9 100644 --- a/ext/tk/sample/demos-jp/textpeer.rb +++ b/ext/tk/sample/demos-jp/textpeer.rb @@ -12,7 +12,7 @@ end # demo toplevel widget $textpeer_demo = TkToplevel.new {|w| - title("Text Wdget Peering Demonstration") + title("Text Widget Peering Demonstration") iconname("textpeer") positionWindow(w) } diff --git a/ext/tk/sample/tkextlib/bwidget/basic.rb b/ext/tk/sample/tkextlib/bwidget/basic.rb index 6a7bdbc1f6..11122ac941 100644 --- a/ext/tk/sample/tkextlib/bwidget/basic.rb +++ b/ext/tk/sample/tkextlib/bwidget/basic.rb @@ -42,7 +42,7 @@ module DemoBasic def self._entry(parent) ent = Tk::BWidget::Entry.new(parent, :text=>'Press enter', - :helptext=>'Entry widtet', + :helptext=>'Entry widget', :command=>proc{ @@var['entcmd'] = 'command called' Tk.after(500, proc{@@var['entcmd'] = ''})