summaryrefslogtreecommitdiff
path: root/Lib/lib-tk/turtle.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-10-16 03:09:52 +0000
committerBrett Cannon <bcannon@gmail.com>2006-10-16 03:09:52 +0000
commitd80e0c86778f92b63cf2c4d82c7248c8ece0fd47 (patch)
treeb6f41eabd84ee51e79d22e287ee21a8f3c638a1b /Lib/lib-tk/turtle.py
parent827ee4411f39817325604811faa58d0f007b6a73 (diff)
downloadcpython-git-d80e0c86778f92b63cf2c4d82c7248c8ece0fd47.tar.gz
Fix turtle so that you can launch the demo2 function on its own instead of only
when the module is launched as a script.
Diffstat (limited to 'Lib/lib-tk/turtle.py')
-rw-r--r--Lib/lib-tk/turtle.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/turtle.py b/Lib/lib-tk/turtle.py
index 01a55b1522..fcde9af4ed 100644
--- a/Lib/lib-tk/turtle.py
+++ b/Lib/lib-tk/turtle.py
@@ -15,6 +15,7 @@ pictures can easily be drawn.
"""
from math import * # Also for export
+from time import sleep
import Tkinter
speeds = ['fastest', 'fast', 'normal', 'slow', 'slowest']
@@ -949,7 +950,6 @@ def demo2():
if __name__ == '__main__':
- from time import sleep
demo()
sleep(3)
demo2()