mirror of
https://github.com/python/cpython.git
synced 2025-10-21 22:22:48 +00:00
Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error
messages.
This commit is contained in:
commit
b6a9c9761c
68 changed files with 93 additions and 92 deletions
|
@ -2771,7 +2771,7 @@ class Menu(Widget):
|
|||
self.deletecommand(c)
|
||||
self.tk.call(self._w, 'delete', index1, index2)
|
||||
def entrycget(self, index, option):
|
||||
"""Return the resource value of an menu item for OPTION at INDEX."""
|
||||
"""Return the resource value of a menu item for OPTION at INDEX."""
|
||||
return self.tk.call(self._w, 'entrycget', index, '-' + option)
|
||||
def entryconfigure(self, index, cnf=None, **kw):
|
||||
"""Configure a menu item at INDEX."""
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
This is very preliminary. I currently only support dnd *within* one
|
||||
application, between different windows (or within the same window).
|
||||
|
||||
I an trying to make this as generic as possible -- not dependent on
|
||||
I am trying to make this as generic as possible -- not dependent on
|
||||
the use of a particular widget or icon type, etc. I also hope that
|
||||
this will work with Pmw.
|
||||
|
||||
|
|
|
@ -193,7 +193,7 @@ class InternalFunctionsTest(unittest.TestCase):
|
|||
|
||||
## Testing type = vsapi
|
||||
# vsapi type expects at least a class name and a part_id, so this
|
||||
# should raise an ValueError since it tries to get two elements from
|
||||
# should raise a ValueError since it tries to get two elements from
|
||||
# an empty tuple
|
||||
self.assertRaises(ValueError, ttk._format_elemcreate, 'vsapi')
|
||||
|
||||
|
|
|
@ -221,7 +221,7 @@ class Tk(tkinter.Tk, tixCommand):
|
|||
self.tk.eval('package require Tix')
|
||||
|
||||
def destroy(self):
|
||||
# For safety, remove an delete_window binding before destroy
|
||||
# For safety, remove the delete_window binding before destroy
|
||||
self.protocol("WM_DELETE_WINDOW", "")
|
||||
tkinter.Tk.destroy(self)
|
||||
|
||||
|
@ -702,7 +702,7 @@ class DirSelectBox(TixWidget):
|
|||
|
||||
class ExFileSelectBox(TixWidget):
|
||||
"""ExFileSelectBox - MS Windows style file select box.
|
||||
It provides an convenient method for the user to select files.
|
||||
It provides a convenient method for the user to select files.
|
||||
|
||||
Subwidget Class
|
||||
--------- -----
|
||||
|
@ -760,7 +760,7 @@ class DirSelectDialog(TixWidget):
|
|||
# Should inherit from a Dialog class
|
||||
class ExFileSelectDialog(TixWidget):
|
||||
"""ExFileSelectDialog - MS Windows style file select dialog.
|
||||
It provides an convenient method for the user to select files.
|
||||
It provides a convenient method for the user to select files.
|
||||
|
||||
Subwidgets Class
|
||||
---------- -----
|
||||
|
|
|
@ -1478,7 +1478,7 @@ class LabeledScale(Frame):
|
|||
can be accessed through instance.label"""
|
||||
|
||||
def __init__(self, master=None, variable=None, from_=0, to=10, **kw):
|
||||
"""Construct an horizontal LabeledScale with parent master, a
|
||||
"""Construct a horizontal LabeledScale with parent master, a
|
||||
variable to be associated with the Ttk Scale widget and its range.
|
||||
If variable is not specified, a tkinter.IntVar is created.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue