summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-02-21 20:27:01 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-02-21 20:27:01 (GMT)
commit3e4caeb3bf2b2579861e9f3379e3508fbb30549c (patch)
tree05385e9530059fe3608194b2e8d6f9e57d797220 /Lib/lib-tk
parenta12a86e956f949bd145cef247a95ed742386c70b (diff)
downloadcpython-3e4caeb3bf2b2579861e9f3379e3508fbb30549c.zip
cpython-3e4caeb3bf2b2579861e9f3379e3508fbb30549c.tar.gz
cpython-3e4caeb3bf2b2579861e9f3379e3508fbb30549c.tar.bz2
Issue #5341: Fix a variety of spelling errors.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py2
-rw-r--r--Lib/lib-tk/test/test_ttk/test_style.py2
-rw-r--r--Lib/lib-tk/test/test_ttk/test_widgets.py10
-rw-r--r--Lib/lib-tk/turtle.py2
4 files changed, 8 insertions, 8 deletions
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 @@ class PhotoImage(Image):
"""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 @@ class StyleTest(unittest.TestCase):
# 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 @@ class TreeviewTest(unittest.TestCase):
# 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 @@ class TreeviewTest(unittest.TestCase):
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 @@ class TreeviewTest(unittest.TestCase):
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 @@ class RawTurtle(TPen, TNavigator):
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