Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1)

Side by Side Diff: Lib/turtle.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Lib/tkinter/test/test_ttk/test_widgets.py ('k') | Lib/unittest/case.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # 1 #
2 # turtle.py: a Tkinter based turtle graphics module for Python 2 # turtle.py: a Tkinter based turtle graphics module for Python
3 # Version 1.1b - 4. 5. 2009 3 # Version 1.1b - 4. 5. 2009
4 # 4 #
5 # Copyright (C) 2006 - 2010 Gregor Lingl 5 # Copyright (C) 2006 - 2010 Gregor Lingl
6 # email: glingl@aon.at 6 # email: glingl@aon.at
7 # 7 #
8 # This software is provided 'as-is', without any express or implied 8 # This software is provided 'as-is', without any express or implied
9 # warranty. In no event will the authors be held liable for any damages 9 # warranty. In no event will the authors be held liable for any damages
10 # arising from the use of this software. 10 # arising from the use of this software.
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 """ 101 """
102 102
103 _ver = "turtle 1.1b- - for Python 3.1 - 4. 5. 2009" 103 _ver = "turtle 1.1b- - for Python 3.1 - 4. 5. 2009"
104 104
105 # print(_ver) 105 # print(_ver)
106 106
107 import tkinter as TK 107 import tkinter as TK
108 import types 108 import types
109 import math 109 import math
110 import time 110 import time
111 import os
111 import inspect 112 import inspect
112 113
113 from os.path import isfile, split, join 114 from os.path import isfile, split, join
114 from copy import deepcopy 115 from copy import deepcopy
115 from tkinter import simpledialog 116 from tkinter import simpledialog
116 117
117 _tg_classes = ['ScrolledCanvas', 'TurtleScreen', 'Screen', 118 _tg_classes = ['ScrolledCanvas', 'TurtleScreen', 'Screen',
118 'RawTurtle', 'Turtle', 'RawPen', 'Pen', 'Shape', 'Vec2D'] 119 'RawTurtle', 'Turtle', 'RawPen', 'Pen', 'Shape', 'Vec2D']
119 _tg_screen_functions = ['addshape', 'bgcolor', 'bgpic', 'bye', 120 _tg_screen_functions = ['addshape', 'bgcolor', 'bgpic', 'bye',
120 'clearscreen', 'colormode', 'delay', 'exitonclick', 'getcanvas', 121 'clearscreen', 'colormode', 'delay', 'exitonclick', 'getcanvas',
(...skipping 4008 matching lines...) Expand 10 before | Expand all | Expand 10 after
4129 while undobufferentries(): 4130 while undobufferentries():
4130 tri.undo() 4131 tri.undo()
4131 turtle.undo() 4132 turtle.undo()
4132 tri.fd(50) 4133 tri.fd(50)
4133 tri.write(" Click me!", font = ("Courier", 12, "bold") ) 4134 tri.write(" Click me!", font = ("Courier", 12, "bold") )
4134 tri.onclick(baba, 1) 4135 tri.onclick(baba, 1)
4135 4136
4136 demo1() 4137 demo1()
4137 demo2() 4138 demo2()
4138 exitonclick() 4139 exitonclick()
OLDNEW
« no previous file with comments | « Lib/tkinter/test/test_ttk/test_widgets.py ('k') | Lib/unittest/case.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+