Skip to content

Commit b090349

Browse files
bravegnuserhiy-storchaka
authored andcommitted
Fix spelling mistakes in tkinter.py (#1752)
Ran the docstrings through spell checker, and fixed spelling issues.
1 parent 32dcf42 commit b090349

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Lib/tkinter/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -865,7 +865,7 @@ def winfo_ismapped(self):
865865
return self.tk.getint(
866866
self.tk.call('winfo', 'ismapped', self._w))
867867
def winfo_manager(self):
868-
"""Return the window mananger name for this widget."""
868+
"""Return the window manager name for this widget."""
869869
return self.tk.call('winfo', 'manager', self._w)
870870
def winfo_name(self):
871871
"""Return the name of this widget."""
@@ -1539,7 +1539,7 @@ def image_names(self):
15391539
return self.tk.splitlist(self.tk.call('image', 'names'))
15401540

15411541
def image_types(self):
1542-
"""Return a list of all available image types (e.g. phote bitmap)."""
1542+
"""Return a list of all available image types (e.g. photo bitmap)."""
15431543
return self.tk.splitlist(self.tk.call('image', 'types'))
15441544

15451545

@@ -1678,7 +1678,7 @@ def wm_focusmodel(self, model=None):
16781678
return self.tk.call('wm', 'focusmodel', self._w, model)
16791679
focusmodel = wm_focusmodel
16801680
def wm_forget(self, window): # new in Tk 8.5
1681-
"""The window will be unmappend from the screen and will no longer
1681+
"""The window will be unmapped from the screen and will no longer
16821682
be managed by wm. toplevel windows will be treated like frame
16831683
windows once they are no longer managed by wm, however, the menu
16841684
option configuration will be remembered and the menus will return
@@ -2382,7 +2382,7 @@ def find_closest(self, x, y, halo=None, start=None):
23822382
"""Return item which is closest to pixel at X, Y.
23832383
If several match take the top-most.
23842384
All items closer than HALO are considered overlapping (all are
2385-
closests). If START is specified the next below this tag is taken."""
2385+
closest). If START is specified the next below this tag is taken."""
23862386
return self.find('closest', x, y, halo, start)
23872387
def find_enclosed(self, x1, y1, x2, y2):
23882388
"""Return all items in rectangle defined
@@ -2442,7 +2442,7 @@ def postscript(self, cnf={}, **kw):
24422442
"""Print the contents of the canvas to a postscript
24432443
file. Valid options: colormap, colormode, file, fontmap,
24442444
height, pageanchor, pageheight, pagewidth, pagex, pagey,
2445-
rotate, witdh, x, y."""
2445+
rotate, width, x, y."""
24462446
return self.tk.call((self._w, 'postscript') +
24472447
self._options(cnf, kw))
24482448
def tag_raise(self, *args):
@@ -3386,7 +3386,7 @@ def height(self):
33863386
return self.tk.getint(
33873387
self.tk.call('image', 'height', self.name))
33883388
def type(self):
3389-
"""Return the type of the imgage, e.g. "photo" or "bitmap"."""
3389+
"""Return the type of the image, e.g. "photo" or "bitmap"."""
33903390
return self.tk.call('image', 'type', self.name)
33913391
def width(self):
33923392
"""Return the width of the image."""

0 commit comments

Comments
 (0)