Issue #5341: Fix a variety of spelling errors.
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index fded249..53249e7 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -3316,7 +3316,7 @@
"""Return the color (red, green, blue) of the pixel at X,Y."""
return self.tk.call(self.name, 'get', x, y)
def put(self, data, to=None):
- """Put row formated colors to image starting from
+ """Put row formatted colors to image starting from
position TO, e.g. image.put("{red green} {blue yellow}", to=(4,6))"""
args = (self.name, 'put', data)
if to:
diff --git a/Lib/lib-tk/test/test_ttk/test_style.py b/Lib/lib-tk/test/test_ttk/test_style.py
index 6754598..ab3554d 100644
--- a/Lib/lib-tk/test/test_ttk/test_style.py
+++ b/Lib/lib-tk/test/test_ttk/test_style.py
@@ -61,7 +61,7 @@
# correct layout, but "option" doesn't exist as option
self.failUnlessRaises(Tkinter.TclError, style.layout, 'Treeview',
- [('name', {'option': 'inexistant'})])
+ [('name', {'option': 'inexistent'})])
def test_theme_use(self):
diff --git a/Lib/lib-tk/test/test_ttk/test_widgets.py b/Lib/lib-tk/test/test_ttk/test_widgets.py
index 913ccb4..4f6f44d 100644
--- a/Lib/lib-tk/test/test_ttk/test_widgets.py
+++ b/Lib/lib-tk/test/test_ttk/test_widgets.py
@@ -861,9 +861,9 @@
# bad values
self.failUnlessRaises(Tkinter.TclError,
- self.tv.reattach, 'nonexistant', '', 'end')
+ self.tv.reattach, 'nonexistent', '', 'end')
self.failUnlessRaises(Tkinter.TclError,
- self.tv.detach, 'nonexistant')
+ self.tv.detach, 'nonexistent')
self.failUnlessRaises(Tkinter.TclError,
self.tv.reattach, item2, 'otherparent', 'end')
self.failUnlessRaises(Tkinter.TclError,
@@ -897,7 +897,7 @@
self.tv.delete(item1)
self.failUnlessEqual(self.tv.focus(), '')
- # try focusing inexistant item
+ # try focusing inexistent item
self.failUnlessRaises(Tkinter.TclError, self.tv.focus, 'hi')
@@ -1064,11 +1064,11 @@
self.failUnlessEqual(self.tv.item(item, values=None), (123, 'a'))
self.failUnlessEqual(self.tv.set(item), {'B': 123})
- # inexistant column
+ # inexistent column
self.failUnlessRaises(Tkinter.TclError, self.tv.set, item, 'A')
self.failUnlessRaises(Tkinter.TclError, self.tv.set, item, 'A', 'b')
- # inexistant item
+ # inexistent item
self.failUnlessRaises(Tkinter.TclError, self.tv.set, 'notme')
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py
index 7bce6f6..a3dc852 100644
--- a/Lib/lib-tk/turtle.py
+++ b/Lib/lib-tk/turtle.py
@@ -2794,7 +2794,7 @@
def _drawturtle(self):
"""Manages the correct rendering of the turtle with respect to
- its shape, resizemode, strech and tilt etc."""
+ its shape, resizemode, stretch and tilt etc."""
screen = self.screen
shape = screen._shapes[self.turtle.shapeIndex]
ttype = shape._type