Kaydet (Commit) 128641d1 authored tarafından Vijay Kumar's avatar Vijay Kumar Kaydeden (comit) Serhiy Storchaka

Fix spelling mistakes in tkinter.py (#1716)

Ran the docstrings through spell checker, and fixed spelling issues.
üst 89a5e032
...@@ -1004,7 +1004,7 @@ class Misc: ...@@ -1004,7 +1004,7 @@ class Misc:
return self.tk.getint( return self.tk.getint(
self.tk.call('winfo', 'ismapped', self._w)) self.tk.call('winfo', 'ismapped', self._w))
def winfo_manager(self): def winfo_manager(self):
"""Return the window mananger name for this widget.""" """Return the window manager name for this widget."""
return self.tk.call('winfo', 'manager', self._w) return self.tk.call('winfo', 'manager', self._w)
def winfo_name(self): def winfo_name(self):
"""Return the name of this widget.""" """Return the name of this widget."""
...@@ -1679,7 +1679,7 @@ class Misc: ...@@ -1679,7 +1679,7 @@ class Misc:
return self.tk.splitlist(self.tk.call('image', 'names')) return self.tk.splitlist(self.tk.call('image', 'names'))
def image_types(self): def image_types(self):
"""Return a list of all available image types (e.g. phote bitmap).""" """Return a list of all available image types (e.g. photo bitmap)."""
return self.tk.splitlist(self.tk.call('image', 'types')) return self.tk.splitlist(self.tk.call('image', 'types'))
...@@ -1818,7 +1818,7 @@ class Wm: ...@@ -1818,7 +1818,7 @@ class Wm:
return self.tk.call('wm', 'focusmodel', self._w, model) return self.tk.call('wm', 'focusmodel', self._w, model)
focusmodel = wm_focusmodel focusmodel = wm_focusmodel
def wm_forget(self, window): # new in Tk 8.5 def wm_forget(self, window): # new in Tk 8.5
"""The window will be unmappend from the screen and will no longer """The window will be unmapped from the screen and will no longer
be managed by wm. toplevel windows will be treated like frame be managed by wm. toplevel windows will be treated like frame
windows once they are no longer managed by wm, however, the menu windows once they are no longer managed by wm, however, the menu
option configuration will be remembered and the menus will return option configuration will be remembered and the menus will return
...@@ -2527,7 +2527,7 @@ class Canvas(Widget, XView, YView): ...@@ -2527,7 +2527,7 @@ class Canvas(Widget, XView, YView):
"""Return item which is closest to pixel at X, Y. """Return item which is closest to pixel at X, Y.
If several match take the top-most. If several match take the top-most.
All items closer than HALO are considered overlapping (all are All items closer than HALO are considered overlapping (all are
closests). If START is specified the next below this tag is taken.""" closest). If START is specified the next below this tag is taken."""
return self.find('closest', x, y, halo, start) return self.find('closest', x, y, halo, start)
def find_enclosed(self, x1, y1, x2, y2): def find_enclosed(self, x1, y1, x2, y2):
"""Return all items in rectangle defined """Return all items in rectangle defined
...@@ -2587,7 +2587,7 @@ class Canvas(Widget, XView, YView): ...@@ -2587,7 +2587,7 @@ class Canvas(Widget, XView, YView):
"""Print the contents of the canvas to a postscript """Print the contents of the canvas to a postscript
file. Valid options: colormap, colormode, file, fontmap, file. Valid options: colormap, colormode, file, fontmap,
height, pageanchor, pageheight, pagewidth, pagex, pagey, height, pageanchor, pageheight, pagewidth, pagex, pagey,
rotate, witdh, x, y.""" rotate, width, x, y."""
return self.tk.call((self._w, 'postscript') + return self.tk.call((self._w, 'postscript') +
self._options(cnf, kw)) self._options(cnf, kw))
def tag_raise(self, *args): def tag_raise(self, *args):
...@@ -3522,7 +3522,7 @@ class Image: ...@@ -3522,7 +3522,7 @@ class Image:
return self.tk.getint( return self.tk.getint(
self.tk.call('image', 'height', self.name)) self.tk.call('image', 'height', self.name))
def type(self): def type(self):
"""Return the type of the imgage, e.g. "photo" or "bitmap".""" """Return the type of the image, e.g. "photo" or "bitmap"."""
return self.tk.call('image', 'type', self.name) return self.tk.call('image', 'type', self.name)
def width(self): def width(self):
"""Return the width of the image.""" """Return the width of the image."""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment