Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
60ebb8b0
Commit
60ebb8b0
authored
Sep 21, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #3884: Make the turtle module toplevel again.
parent
8e354835
Changes
20
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
18 deletions
+20
-18
Demo/turtle/tdemo_I_dontlike_tiltdemo.py
Demo/turtle/tdemo_I_dontlike_tiltdemo.py
+1
-1
Demo/turtle/tdemo_bytedesign.py
Demo/turtle/tdemo_bytedesign.py
+1
-1
Demo/turtle/tdemo_chaos.py
Demo/turtle/tdemo_chaos.py
+1
-1
Demo/turtle/tdemo_clock.py
Demo/turtle/tdemo_clock.py
+1
-1
Demo/turtle/tdemo_colormixer.py
Demo/turtle/tdemo_colormixer.py
+1
-1
Demo/turtle/tdemo_forest.py
Demo/turtle/tdemo_forest.py
+1
-1
Demo/turtle/tdemo_fractalcurves.py
Demo/turtle/tdemo_fractalcurves.py
+1
-1
Demo/turtle/tdemo_lindenmayer_indian.py
Demo/turtle/tdemo_lindenmayer_indian.py
+1
-1
Demo/turtle/tdemo_minimal_hanoi.py
Demo/turtle/tdemo_minimal_hanoi.py
+1
-1
Demo/turtle/tdemo_paint.py
Demo/turtle/tdemo_paint.py
+1
-1
Demo/turtle/tdemo_peace.py
Demo/turtle/tdemo_peace.py
+1
-1
Demo/turtle/tdemo_penrose.py
Demo/turtle/tdemo_penrose.py
+1
-1
Demo/turtle/tdemo_planet_and_moon.py
Demo/turtle/tdemo_planet_and_moon.py
+1
-1
Demo/turtle/tdemo_tree.py
Demo/turtle/tdemo_tree.py
+1
-1
Demo/turtle/tdemo_wikipedia.py
Demo/turtle/tdemo_wikipedia.py
+1
-1
Demo/turtle/tdemo_yinyang.py
Demo/turtle/tdemo_yinyang.py
+1
-1
Demo/turtle/turtleDemo.py
Demo/turtle/turtleDemo.py
+1
-1
Demo/turtle/turtledemo_two_canvases.py
Demo/turtle/turtledemo_two_canvases.py
+1
-1
Lib/turtle.py
Lib/turtle.py
+0
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Demo/turtle/tdemo_I_dontlike_tiltdemo.py
View file @
60ebb8b0
...
...
@@ -12,7 +12,7 @@ We can remove it, if you don't like it.
Without using reset() ;-)
---------------------------------------
"""
from
t
kinter.t
urtle
import
*
from
turtle
import
*
import
time
def
main
():
...
...
Demo/turtle/tdemo_bytedesign.py
View file @
60ebb8b0
...
...
@@ -23,7 +23,7 @@ mode as fast as possible.
"""
import
math
from
t
kinter.t
urtle
import
Turtle
,
mainloop
from
turtle
import
Turtle
,
mainloop
from
time
import
clock
# wrapper for any additional drawing routines
...
...
Demo/turtle/tdemo_chaos.py
View file @
60ebb8b0
...
...
@@ -4,7 +4,7 @@
# Ein einfaches Programm zur Demonstration von "chaotischem Verhalten".
from
t
kinter.t
urtle
import
*
from
turtle
import
*
def
f
(
x
):
return
3.9
*
x
*
(
1
-
x
)
...
...
Demo/turtle/tdemo_clock.py
View file @
60ebb8b0
...
...
@@ -10,7 +10,7 @@ and time
Press STOP to exit the program!
------------------------------------
"""
from
t
kinter.t
urtle
import
*
from
turtle
import
*
from
datetime
import
datetime
mode
(
"logo"
)
...
...
Demo/turtle/tdemo_colormixer.py
View file @
60ebb8b0
# colormixer
from
t
kinter.t
urtle
import
Screen
,
Turtle
,
mainloop
from
turtle
import
Screen
,
Turtle
,
mainloop
import
sys
sys
.
setrecursionlimit
(
20000
)
# overcomes, for now, an instability of Python 3.0
...
...
Demo/turtle/tdemo_forest.py
View file @
60ebb8b0
...
...
@@ -11,7 +11,7 @@ This example is a 'breadth-first'-rewrite of
a Logo program written by Erich Neuwirth. See:
http://homepage.univie.ac.at/erich.neuwirth/
"""
from
t
kinter.t
urtle
import
Turtle
,
colormode
,
tracer
,
mainloop
from
turtle
import
Turtle
,
colormode
,
tracer
,
mainloop
from
random
import
randrange
from
time
import
clock
...
...
Demo/turtle/tdemo_fractalcurves.py
View file @
60ebb8b0
...
...
@@ -11,7 +11,7 @@ The CurvesTurtle class and the fractal-curve-
methods are taken from the PythonCard example
scripts for turtle-graphics.
"""
from
t
kinter.t
urtle
import
*
from
turtle
import
*
from
time
import
sleep
,
clock
class
CurvesTurtle
(
Pen
):
...
...
Demo/turtle/tdemo_lindenmayer_indian.py
View file @
60ebb8b0
...
...
@@ -25,7 +25,7 @@ Cultures
# Mini Lindenmayer tool
###############################
from
t
kinter.t
urtle
import
*
from
turtle
import
*
def
replace
(
seq
,
replacementRules
,
n
):
for
i
in
range
(
n
):
...
...
Demo/turtle/tdemo_minimal_hanoi.py
View file @
60ebb8b0
...
...
@@ -17,7 +17,7 @@ stretched to rectangles by shapesize()
To exit press STOP button
---------------------------------------
"""
from
t
kinter.t
urtle
import
*
from
turtle
import
*
class
Disc
(
Turtle
):
def
__init__
(
self
,
n
):
...
...
Demo/turtle/tdemo_paint.py
View file @
60ebb8b0
...
...
@@ -15,7 +15,7 @@ A simple eventdriven paint program
To exit press STOP button
-------------------------------------------
"""
from
t
kinter.t
urtle
import
*
from
turtle
import
*
def
switchupdown
(
x
=
0
,
y
=
0
):
if
pen
()[
"pendown"
]:
...
...
Demo/turtle/tdemo_peace.py
View file @
60ebb8b0
...
...
@@ -13,7 +13,7 @@ Intentionally no variables are used except for the
colorloop:
"""
from
t
kinter.t
urtle
import
*
from
turtle
import
*
def
main
():
peacecolors
=
(
"red3"
,
"orange"
,
"yellow"
,
...
...
Demo/turtle/tdemo_penrose.py
View file @
60ebb8b0
...
...
@@ -15,7 +15,7 @@ For more information see:
http://en.wikipedia.org/wiki/Penrose_tiling
-------------------------------------------
"""
from
t
kinter.t
urtle
import
*
from
turtle
import
*
from
math
import
cos
,
pi
from
time
import
clock
,
sleep
...
...
Demo/turtle/tdemo_planet_and_moon.py
View file @
60ebb8b0
...
...
@@ -17,7 +17,7 @@ the left mouse button with mouse over the
scrollbar of the canvas.
"""
from
t
kinter.t
urtle
import
Shape
,
Turtle
,
mainloop
,
Vec2D
as
Vec
from
turtle
import
Shape
,
Turtle
,
mainloop
,
Vec2D
as
Vec
from
time
import
sleep
G
=
8
...
...
Demo/turtle/tdemo_tree.py
View file @
60ebb8b0
...
...
@@ -15,7 +15,7 @@ always yields None.
current pen is cloned. So in the end there
are 1024 turtles.
"""
from
t
kinter.t
urtle
import
Turtle
,
mainloop
from
turtle
import
Turtle
,
mainloop
from
time
import
clock
def
tree
(
plist
,
l
,
a
,
f
):
...
...
Demo/turtle/tdemo_wikipedia.py
View file @
60ebb8b0
...
...
@@ -13,7 +13,7 @@ parallel.
Followed by a complete undo().
"""
from
t
kinter.t
urtle
import
Screen
,
Turtle
,
mainloop
from
turtle
import
Screen
,
Turtle
,
mainloop
from
time
import
clock
,
sleep
def
mn_eck
(
p
,
ne
,
sz
):
...
...
Demo/turtle/tdemo_yinyang.py
View file @
60ebb8b0
...
...
@@ -11,7 +11,7 @@ command.
"""
from
t
kinter.t
urtle
import
*
from
turtle
import
*
def
yin
(
radius
,
color1
,
color2
):
width
(
3
)
...
...
Demo/turtle/turtleDemo.py
View file @
60ebb8b0
...
...
@@ -8,7 +8,7 @@ from idlelib.ColorDelegator import ColorDelegator
from
idlelib.textView
import
view_file
# TextViewer
from
imp
import
reload
from
tkinter
import
turtle
import
turtle
import
time
STARTUP
=
1
...
...
Demo/turtle/turtledemo_two_canvases.py
View file @
60ebb8b0
...
...
@@ -3,7 +3,7 @@
"""turtle example: Using TurtleScreen and RawTurtle
for drawing on two distinct canvases.
"""
from
t
kinter.t
urtle
import
TurtleScreen
,
RawTurtle
,
TK
from
turtle
import
TurtleScreen
,
RawTurtle
,
TK
root
=
TK
.
Tk
()
cv1
=
TK
.
Canvas
(
root
,
width
=
300
,
height
=
200
,
bg
=
"#ddffff"
)
...
...
Lib/t
kinter/t
urtle.py
→
Lib/turtle.py
View file @
60ebb8b0
File moved
Misc/NEWS
View file @
60ebb8b0
...
...
@@ -15,6 +15,8 @@ Core and Builtins
Library
-------
- Bug #3884: Make the turtle module toplevel again.
What's New in Python 3.0 release candidate 1
============================================
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment