Bug #3884: Make the turtle module toplevel again.

This commit is contained in:
Martin v. Löwis 2008-09-21 07:32:10 +00:00
parent 8e3548350d
commit 60ebb8b0aa
20 changed files with 20 additions and 18 deletions

View file

@ -12,7 +12,7 @@
Without using reset() ;-)
---------------------------------------
"""
from tkinter.turtle import *
from turtle import *
import time
def main():

View file

@ -23,7 +23,7 @@
"""
import math
from tkinter.turtle import Turtle, mainloop
from turtle import Turtle, mainloop
from time import clock
# wrapper for any additional drawing routines

View file

@ -4,7 +4,7 @@
# Ein einfaches Programm zur Demonstration von "chaotischem Verhalten".
from tkinter.turtle import *
from turtle import *
def f(x):
return 3.9*x*(1-x)

View file

@ -10,7 +10,7 @@
Press STOP to exit the program!
------------------------------------
"""
from tkinter.turtle import *
from turtle import *
from datetime import datetime
mode("logo")

View file

@ -1,6 +1,6 @@
# colormixer
from tkinter.turtle import Screen, Turtle, mainloop
from turtle import Screen, Turtle, mainloop
import sys
sys.setrecursionlimit(20000) # overcomes, for now, an instability of Python 3.0

View file

@ -11,7 +11,7 @@
a Logo program written by Erich Neuwirth. See:
http://homepage.univie.ac.at/erich.neuwirth/
"""
from tkinter.turtle import Turtle, colormode, tracer, mainloop
from turtle import Turtle, colormode, tracer, mainloop
from random import randrange
from time import clock

View file

@ -11,7 +11,7 @@
methods are taken from the PythonCard example
scripts for turtle-graphics.
"""
from tkinter.turtle import *
from turtle import *
from time import sleep, clock
class CurvesTurtle(Pen):

View file

@ -25,7 +25,7 @@
# Mini Lindenmayer tool
###############################
from tkinter.turtle import *
from turtle import *
def replace( seq, replacementRules, n ):
for i in range(n):

View file

@ -17,7 +17,7 @@
To exit press STOP button
---------------------------------------
"""
from tkinter.turtle import *
from turtle import *
class Disc(Turtle):
def __init__(self, n):

View file

@ -15,7 +15,7 @@
To exit press STOP button
-------------------------------------------
"""
from tkinter.turtle import *
from turtle import *
def switchupdown(x=0, y=0):
if pen()["pendown"]:

View file

@ -13,7 +13,7 @@
colorloop:
"""
from tkinter.turtle import *
from turtle import *
def main():
peacecolors = ("red3", "orange", "yellow",

View file

@ -15,7 +15,7 @@
http://en.wikipedia.org/wiki/Penrose_tiling
-------------------------------------------
"""
from tkinter.turtle import *
from turtle import *
from math import cos, pi
from time import clock, sleep

View file

@ -17,7 +17,7 @@
scrollbar of the canvas.
"""
from tkinter.turtle import Shape, Turtle, mainloop, Vec2D as Vec
from turtle import Shape, Turtle, mainloop, Vec2D as Vec
from time import sleep
G = 8

View file

@ -15,7 +15,7 @@
current pen is cloned. So in the end there
are 1024 turtles.
"""
from tkinter.turtle import Turtle, mainloop
from turtle import Turtle, mainloop
from time import clock
def tree(plist, l, a, f):

View file

@ -13,7 +13,7 @@
Followed by a complete undo().
"""
from tkinter.turtle import Screen, Turtle, mainloop
from turtle import Screen, Turtle, mainloop
from time import clock, sleep
def mn_eck(p, ne,sz):

View file

@ -11,7 +11,7 @@
"""
from tkinter.turtle import *
from turtle import *
def yin(radius, color1, color2):
width(3)

View file

@ -8,7 +8,7 @@
from idlelib.textView import view_file # TextViewer
from imp import reload
from tkinter import turtle
import turtle
import time
STARTUP = 1

View file

@ -3,7 +3,7 @@
"""turtle example: Using TurtleScreen and RawTurtle
for drawing on two distinct canvases.
"""
from tkinter.turtle import TurtleScreen, RawTurtle, TK
from turtle import TurtleScreen, RawTurtle, TK
root = TK.Tk()
cv1 = TK.Canvas(root, width=300, height=200, bg="#ddffff")

View file

@ -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
============================================