summaryrefslogtreecommitdiff
path: root/ext/tk/sample
diff options
context:
space:
mode:
authora_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 09:57:21 +0000
committera_matsuda <a_matsuda@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-27 09:57:21 +0000
commit73a37eb3256862c17b77aa0ee1590933e051b7c3 (patch)
tree9c170e584d31262d1f9030eb402827ad09e5472b /ext/tk/sample
parent98e3c058fa42fdcc2a6e0a24b47786dcaf808ec8 (diff)
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')
-rw-r--r--ext/tk/sample/demos-en/image3.rb2
-rw-r--r--ext/tk/sample/demos-en/toolbar.rb2
-rw-r--r--ext/tk/sample/demos-en/ttknote.rb4
-rw-r--r--ext/tk/sample/demos-jp/image3.rb2
-rw-r--r--ext/tk/sample/demos-jp/ttknote.rb4
-rw-r--r--ext/tk/sample/editable_listbox.rb2
-rw-r--r--ext/tk/sample/menubar3.rb2
-rw-r--r--ext/tk/sample/scrollframe.rb6
-rw-r--r--ext/tk/sample/tkballoonhelp.rb12
-rw-r--r--ext/tk/sample/tkextlib/bwidget/demo.rb2
-rw-r--r--ext/tk/sample/tkextlib/iwidgets/sample/entryfield-1.rb2
-rw-r--r--ext/tk/sample/tkextlib/iwidgets/sample/entryfield-2.rb2
-rw-r--r--ext/tk/sample/tkextlib/iwidgets/sample/entryfield-3.rb2
-rw-r--r--ext/tk/sample/tkextlib/tkHTML/hv.rb2
-rw-r--r--ext/tk/sample/tkextlib/tkHTML/ss.rb2
-rw-r--r--ext/tk/sample/tkextlib/tktable/buttons.rb2
-rw-r--r--ext/tk/sample/tkextlib/vu/README.txt2
-rw-r--r--ext/tk/sample/tkmulticolumnlist.rb6
-rw-r--r--ext/tk/sample/tkmultilistbox.rb6
-rw-r--r--ext/tk/sample/tkmultilistframe.rb6
-rw-r--r--ext/tk/sample/tktextframe.rb4
-rw-r--r--ext/tk/sample/tktextio.rb2
-rw-r--r--ext/tk/sample/ttk_wrapper.rb2
23 files changed, 39 insertions, 39 deletions
diff --git a/ext/tk/sample/demos-en/image3.rb b/ext/tk/sample/demos-en/image3.rb
index 2879cd4..9b2be20 100644
--- a/ext/tk/sample/demos-en/image3.rb
+++ b/ext/tk/sample/demos-en/image3.rb
@@ -32,7 +32,7 @@ end
# selectAndLoadDir3 --
# This procedure pops up a dialog to ask for a directory to load into
-# the listobx and (if the user presses OK) reloads the directory
+# the listbox and (if the user presses OK) reloads the directory
# listbox from the directory named in the demo's entry.
#
# Arguments:
diff --git a/ext/tk/sample/demos-en/toolbar.rb b/ext/tk/sample/demos-en/toolbar.rb
index 1914e6e..a16125b 100644
--- a/ext/tk/sample/demos-en/toolbar.rb
+++ b/ext/tk/sample/demos-en/toolbar.rb
@@ -43,7 +43,7 @@ EOL
end
## Set up the toolbar hull
-tbar_base = Tk::Frame.new(base_frame, # Must be a starndard Tk frame!
+tbar_base = Tk::Frame.new(base_frame, # Must be a standard Tk frame!
:widgetname=>'toolbar') # for window title
sep = Ttk::Separator.new(base_frame)
to_base = Ttk::Frame.new(tbar_base, :cursor=>'fleur')
diff --git a/ext/tk/sample/demos-en/ttknote.rb b/ext/tk/sample/demos-en/ttknote.rb
index 7c56252..7540fde 100644
--- a/ext/tk/sample/demos-en/ttknote.rb
+++ b/ext/tk/sample/demos-en/ttknote.rb
@@ -43,7 +43,7 @@ notebook = Ttk::Notebook.new(base_frame).pack(:fill=>:both, :expand=>true,
:padx=>2, :pady=>3)
notebook.enable_traversal
-## Popuplate the first pane
+## Populate the first pane
f_msg = Ttk::Frame.new(notebook)
msg_m = Ttk::Label.new(f_msg, :font=>$font, :wraplength=>'4i',
:justify=>:left, :anchor=>'n', :text=><<EOL)
@@ -77,7 +77,7 @@ f_msg.grid_columnconfigure([0, 1], :weight=>1, :uniform=>1)
f_disabled = Ttk::Frame.new(notebook)
notebook.add(f_disabled, :text=>'Disabled', :state=>:disabled)
-## Popuplate the third pane
+## Populate the third pane
f_editor = Ttk::Frame.new(notebook)
notebook.add(f_editor, :text=>'Text Editor', :underline=>0)
editor_t = Tk::Text.new(f_editor, :width=>40, :height=>10, :wrap=>:char)
diff --git a/ext/tk/sample/demos-jp/image3.rb b/ext/tk/sample/demos-jp/image3.rb
index 3f2b1ad..e5bb184 100644
--- a/ext/tk/sample/demos-jp/image3.rb
+++ b/ext/tk/sample/demos-jp/image3.rb
@@ -33,7 +33,7 @@ end
# selectAndLoadDir3 --
# This procedure pops up a dialog to ask for a directory to load into
-# the listobx and (if the user presses OK) reloads the directory
+# the listbox and (if the user presses OK) reloads the directory
# listbox from the directory named in the demo's entry.
#
# Arguments:
diff --git a/ext/tk/sample/demos-jp/ttknote.rb b/ext/tk/sample/demos-jp/ttknote.rb
index 2f82408..332b101 100644
--- a/ext/tk/sample/demos-jp/ttknote.rb
+++ b/ext/tk/sample/demos-jp/ttknote.rb
@@ -45,7 +45,7 @@ notebook = Ttk::Notebook.new(base_frame).pack(:fill=>:both, :expand=>true,
:padx=>2, :pady=>3)
notebook.enable_traversal
-## Popuplate the first pane
+## Populate the first pane
f_msg = Ttk::Frame.new(notebook)
msg_m = Ttk::Label.new(f_msg, :font=>$font, :wraplength=>'5i',
:justify=>:left, :anchor=>'n', :text=><<EOL)
@@ -85,7 +85,7 @@ f_msg.grid_columnconfigure([0, 1], :weight=>1, :uniform=>1)
f_disabled = Ttk::Frame.new(notebook)
notebook.add(f_disabled, :text=>'無効化されたタブ', :state=>:disabled)
-## Popuplate the third pane
+## Populate the third pane
f_editor = Ttk::Frame.new(notebook)
notebook.add(f_editor, :text=>'テキストエディタ(Text Editor)', :underline=>9)
editor_t = Tk::Text.new(f_editor, :width=>40, :height=>10, :wrap=>:char)
diff --git a/ext/tk/sample/editable_listbox.rb b/ext/tk/sample/editable_listbox.rb
index 02a3f4a..5cbd20e 100644
--- a/ext/tk/sample/editable_listbox.rb
+++ b/ext/tk/sample/editable_listbox.rb
@@ -2,7 +2,7 @@
#
# Tk::RbWidget::Editable_Listbox class
#
-# When "DoubleClick-1" on a listbox item, the entry box is opend on the
+# When "DoubleClick-1" on a listbox item, the entry box is opened on the
# item. And when hit "Return" key on the entry box after modifying the
# text, the entry box is closed and the item is changed. Or when hit
# "Escape" key, the entry box is closed without modification.
diff --git a/ext/tk/sample/menubar3.rb b/ext/tk/sample/menubar3.rb
index ce70835..43447b8 100644
--- a/ext/tk/sample/menubar3.rb
+++ b/ext/tk/sample/menubar3.rb
@@ -8,7 +8,7 @@ require 'tk'
radio_var = TkVariable.new('y')
menu_spec = [
- [['&File', true], # when underline option is ture, '&' index is the position
+ [['&File', true], # when underline option is true, '&' index is the position
{:label=>'Open', :command=>proc{puts('Open clicked')}, :underline=>0},
'---',
['Check_A', TkVariable.new(true), 6],
diff --git a/ext/tk/sample/scrollframe.rb b/ext/tk/sample/scrollframe.rb
index fda4478..346f88a 100644
--- a/ext/tk/sample/scrollframe.rb
+++ b/ext/tk/sample/scrollframe.rb
@@ -7,8 +7,8 @@
# When it is configured, scrollregion of the container is changed.
#
# Scrollbars can be toggled by Tk::RbWidget::ScrollFrame#vscroll & hscroll.
-# If horizontal or virtical scrollbar is turned off, the horizontal
-# or virtical size of embedded widgets is propagated.
+# If horizontal or vertical scrollbar is turned off, the horizontal
+# or vertical size of embedded widgets is propagated.
#
# Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#
@@ -34,7 +34,7 @@ class Tk::RbWidget::ScrollFrame < TkFrame
:borderwidth=>0, :selectborderwidth=>0,
:highlightthickness=>0)
- # allignment
+ # alignment
TkGrid.rowconfigure(@frame, 0, 'weight'=>1, 'minsize'=>0)
TkGrid.columnconfigure(@frame, 0, 'weight'=>1, 'minsize'=>0)
@canvas.grid('row'=>0, 'column'=>0, 'sticky'=>'news')
diff --git a/ext/tk/sample/tkballoonhelp.rb b/ext/tk/sample/tkballoonhelp.rb
index fb81116..f6f2c8a 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
diff --git a/ext/tk/sample/tkextlib/bwidget/demo.rb b/ext/tk/sample/tkextlib/bwidget/demo.rb
index 0b5578c..5fe54ee 100644
--- a/ext/tk/sample/tkextlib/bwidget/demo.rb
+++ b/ext/tk/sample/tkextlib/bwidget/demo.rb
@@ -87,7 +87,7 @@ class BWidget_Demo
:progressvar=>DemoVar.prgindic
)
- # toobar 1 creation
+ # toolbar 1 creation
DemoVar.prgindic.numeric += 1
DemoVar.mainframe.add_toolbar{|tb1|
diff --git a/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-1.rb b/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-1.rb
index a063ddc..1bb68d7 100644
--- a/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-1.rb
+++ b/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-1.rb
@@ -2,7 +2,7 @@
# frozen_string_literal: false
#########################################################
#
-# use Tk::UTF8_String() for a utf8 charecter
+# use Tk::UTF8_String() for a utf8 character
#
#########################################################
require 'tk'
diff --git a/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-2.rb b/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-2.rb
index fb7538b..0b75e56 100644
--- a/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-2.rb
+++ b/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-2.rb
@@ -2,7 +2,7 @@
# frozen_string_literal: false
#########################################################
#
-# set $KCODE to 'utf' for a utf8 charecter
+# set $KCODE to 'utf' for a utf8 character
#
#########################################################
unless defined?(::Encoding.default_external)
diff --git a/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-3.rb b/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-3.rb
index dc84620..2aad4da 100644
--- a/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-3.rb
+++ b/ext/tk/sample/tkextlib/iwidgets/sample/entryfield-3.rb
@@ -2,7 +2,7 @@
# frozen_string_literal: false
#########################################################
#
-# set Tk.encoding = 'utf-8' for a utf8 charecter
+# set Tk.encoding = 'utf-8' for a utf8 character
#
#########################################################
require 'tk'
diff --git a/ext/tk/sample/tkextlib/tkHTML/hv.rb b/ext/tk/sample/tkextlib/tkHTML/hv.rb
index eb3a786..0f6e595 100644
--- a/ext/tk/sample/tkextlib/tkHTML/hv.rb
+++ b/ext/tk/sample/tkextlib/tkHTML/hv.rb
@@ -302,7 +302,7 @@ show_tbl.trace('w', proc{
show_img.trace('w', refresh)
-# If an arguent was specified, read it into the HTML widget.
+# If an argument was specified, read it into the HTML widget.
#
Tk.update
if file && file != ""
diff --git a/ext/tk/sample/tkextlib/tkHTML/ss.rb b/ext/tk/sample/tkextlib/tkHTML/ss.rb
index e6ef63b..6531fef 100644
--- a/ext/tk/sample/tkextlib/tkHTML/ss.rb
+++ b/ext/tk/sample/tkextlib/tkHTML/ss.rb
@@ -114,7 +114,7 @@ EOD
@html.clipwin.focus
- # If an arguent was specified, read it into the HTML widget.
+ # If an argument was specified, read it into the HTML widget.
#
Tk.update
if file && file != ""
diff --git a/ext/tk/sample/tkextlib/tktable/buttons.rb b/ext/tk/sample/tkextlib/tktable/buttons.rb
index 2c3fee7..a1fc720 100644
--- a/ext/tk/sample/tkextlib/tktable/buttons.rb
+++ b/ext/tk/sample/tkextlib/tktable/buttons.rb
@@ -62,7 +62,7 @@ table.bind('1', proc{|w, x, y|
end}, '%W %x %y')
-# inititialize the array, titles, and celltags
+# initialize the array, titles, and celltags
0.step(rows){|i|
tab[i,-1] = i
0.step(cols){|j|
diff --git a/ext/tk/sample/tkextlib/vu/README.txt b/ext/tk/sample/tkextlib/vu/README.txt
index ce5f371..2fe72d5 100644
--- a/ext/tk/sample/tkextlib/vu/README.txt
+++ b/ext/tk/sample/tkextlib/vu/README.txt
@@ -31,7 +31,7 @@ m128_000.xbm
oscilloscope.tcl
the heart of a Realtime Oscilloscope,where the PCs joystick
- port gives 4 digtal inputs and 4 analog 8 bit values with an
+ port gives 4 digital inputs and 4 analog 8 bit values with an
resolution of ~1 millisecond (!!!) running Realtime Linux.
<p> creates DEMO.ps
diff --git a/ext/tk/sample/tkmulticolumnlist.rb b/ext/tk/sample/tkmulticolumnlist.rb
index fb0c29d..1b26077 100644
--- a/ext/tk/sample/tkmulticolumnlist.rb
+++ b/ext/tk/sample/tkmulticolumnlist.rb
@@ -54,7 +54,7 @@ class TkMultiColumnList < TkText
@mode = :title
@command = nil
- # virtical scrollbar
+ # vertical scrollbar
@v_scroll = TkYScrollbar.new(@frame, 'highlightthickness'=>@h_l_thick,
'borderwidth'=>@scrbar_border,
'width'=>@scrbar_width)
@@ -197,10 +197,10 @@ class TkMultiColumnList < TkText
@f_lbox.height lbox_height
@f_hscr.height hscr_height
- # set control procedure for virtical scroll
+ # set control procedure for vertical scroll
@v_scroll.assign(*@lbox_list)
- # set control procedure for horizoncal scroll
+ # set control procedure for horizontal scroll
@h_scroll.assign(@c_title, @c_lbox, @c_hscr)
# binding for listboxes
diff --git a/ext/tk/sample/tkmultilistbox.rb b/ext/tk/sample/tkmultilistbox.rb
index c8c8118..29a2077 100644
--- a/ext/tk/sample/tkmultilistbox.rb
+++ b/ext/tk/sample/tkmultilistbox.rb
@@ -21,7 +21,7 @@ class TkMultiListbox < TkListbox
@width_total = 0
title_info.each{|title, width| @width_total += width.to_f}
- # virtical scrollbar
+ # vertical scrollbar
@v_scroll = TkScrollbar.new(@frame, 'orient'=>'vertical')
# init arrays
@@ -42,7 +42,7 @@ class TkMultiListbox < TkListbox
'height'=>@v_scroll.cget('width') +
2 * @v_scroll.cget('borderwidth'))
- # dummy label to keep the hight of title space
+ # dummy label to keep the height of title space
TkLabel.new(@f_title, 'text'=>' ').pack
# create each listbox
@@ -104,7 +104,7 @@ class TkMultiListbox < TkListbox
tab.bind('B1-Motion', proc{|x, idx| resize(x, idx.to_i)}, "%X #{idx}")
}
- # set control procedure for virtical scroll
+ # set control procedure for vertical scroll
@lbox_list.each{|lbox|
lbox.yscrollcommand proc{|first, last|
@v_scroll.set first, last
diff --git a/ext/tk/sample/tkmultilistframe.rb b/ext/tk/sample/tkmultilistframe.rb
index 229a400..5e07b4e 100644
--- a/ext/tk/sample/tkmultilistframe.rb
+++ b/ext/tk/sample/tkmultilistframe.rb
@@ -53,7 +53,7 @@ class TkMultiListFrame < TkListbox
# init status
@mode = :title
- # virtical scrollbar
+ # vertical scrollbar
=begin
@v_scroll = TkScrollbar.new(@frame, 'highlightthickness'=>@h_l_thick,
'borderwidth'=>@scrbar_border,
@@ -185,7 +185,7 @@ class TkMultiListFrame < TkListbox
@f_lbox.height lbox_height
@f_hscr.height hscr_height
- # set control procedure for virtical scroll
+ # set control procedure for vertical scroll
=begin
@lbox_list.each{|lbox|
lbox.yscrollcommand proc{|first, last|
@@ -196,7 +196,7 @@ class TkMultiListFrame < TkListbox
=end
@v_scroll.assign(*@lbox_list)
- # set control procedure for horizoncal scroll
+ # set control procedure for horizontal scroll
=begin
@c_title.xscrollcommand proc{|first, last|
@h_scroll.set first, last
diff --git a/ext/tk/sample/tktextframe.rb b/ext/tk/sample/tktextframe.rb
index f6d9bbd..60f9a27 100644
--- a/ext/tk/sample/tktextframe.rb
+++ b/ext/tk/sample/tktextframe.rb
@@ -76,7 +76,7 @@ module Tk::ScrollbarComposite
@component.xscrollbar(@h_scroll)
@component.yscrollbar(@v_scroll)
- # allignment
+ # alignment
TkGrid.rowconfigure(@frame, 0, 'weight'=>1, 'minsize'=>0)
TkGrid.columnconfigure(@frame, 0, 'weight'=>1, 'minsize'=>0)
@component.grid('row'=>0, 'column'=>0, 'sticky'=>'news')
@@ -156,7 +156,7 @@ class TkTextFrame < TkText
:textrelief
)
- # return the created componet
+ # return the created component
@text
end
private :create_component
diff --git a/ext/tk/sample/tktextio.rb b/ext/tk/sample/tktextio.rb
index 4a1346b..e192834 100644
--- a/ext/tk/sample/tktextio.rb
+++ b/ext/tk/sample/tktextio.rb
@@ -8,7 +8,7 @@
# So, for example, TkTextIO#getc returns a character, TkTextIO#pos
# means the character position, TkTextIO#read(size) counts by
# characters, and so on.
-# Of course, it is available to make TkTextIO class to suuport
+# Of course, it is available to make TkTextIO class to support
# 'byte' access. However, it may break multi-byte characters.
# and then, displayed string on the text widget may be garbled.
# I think that it is not good on the supposed situation of using
diff --git a/ext/tk/sample/ttk_wrapper.rb b/ext/tk/sample/ttk_wrapper.rb
index eee9878..1706c86 100644
--- a/ext/tk/sample/ttk_wrapper.rb
+++ b/ext/tk/sample/ttk_wrapper.rb
@@ -121,7 +121,7 @@ Tk::Tile.set_theme(OPTS[:theme]) if OPTS[:theme]
##########################################################################
-# replace $0 and $RPAGRAM_NAME
+# replace $0 and $PROGRAM_NAME
##########################################################################
# When the expand_path of the target script is long, ruby sometimes
# fails to set the path to $0 (the path string is trimmed).