diff options
author | Georg Brandl <georg@python.org> | 2008-05-17 18:39:55 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-17 18:39:55 (GMT) |
commit | 14fc4270da5db43574d46d055a5f794ed33b271f (patch) | |
tree | 3d937a96350b067c7dcee6425fe14617dd8b9ef5 /Lib/tkinter/turtle.py | |
parent | 330231238327558337b9d8dbabe3a3b02641501d (diff) | |
download | cpython-14fc4270da5db43574d46d055a5f794ed33b271f.zip cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.gz cpython-14fc4270da5db43574d46d055a5f794ed33b271f.tar.bz2 |
Tkinter, step 2: adapt imports.
Diffstat (limited to 'Lib/tkinter/turtle.py')
-rw-r--r-- | Lib/tkinter/turtle.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/tkinter/turtle.py b/Lib/tkinter/turtle.py index 960a9f6..3dee659 100644 --- a/Lib/tkinter/turtle.py +++ b/Lib/tkinter/turtle.py @@ -16,7 +16,7 @@ pictures can easily be drawn. from math import * # Also for export from time import sleep -import Tkinter +import tkinter speeds = ['fastest', 'fast', 'normal', 'slow', 'slowest'] @@ -238,7 +238,7 @@ class RawPen: # Test the color first try: id = self._canvas.create_line(0, 0, 0, 0, fill=color) - except Tkinter.TclError: + except tkinter.TclError: raise Error("bad color string: %r" % (color,)) self._set_color(color) return @@ -554,7 +554,7 @@ class RawPen: # in case nhops==0 self._canvas.coords(item, x0, y0, x1, y1) self._canvas.itemconfigure(item, arrow="none") - except Tkinter.TclError: + except tkinter.TclError: # Probably the window was closed! return else: @@ -638,13 +638,13 @@ class Pen(RawPen): def __init__(self): global _root, _canvas if _root is None: - _root = Tkinter.Tk() + _root = tkinter.Tk() _root.wm_protocol("WM_DELETE_WINDOW", self._destroy) _root.title(_title) if _canvas is None: # XXX Should have scroll bars - _canvas = Tkinter.Canvas(_root, background="white") + _canvas = tkinter.Canvas(_root, background="white") _canvas.pack(expand=1, fill="both") setup(width=_width, height= _height, startx=_startx, starty=_starty) |