Benjamin Peterson
5b63acd31e
#2503 make singletons compared with "is" not == or !=
...
Thanks to Wummel for the patch
2008-03-29 15:24:25 +00:00
Brett Cannon
d80e0c8677
Fix turtle so that you can launch the demo2 function on its own instead of only
...
when the module is launched as a script.
2006-10-16 03:09:52 +00:00
Andrew M. Kuchling
e2222a083b
Fix docstring punctuation
2006-07-29 14:43:55 +00:00
Tim Peters
12c00f79bc
Whitespace normalization.
2006-07-11 02:17:48 +00:00
Martin v. Löwis
06c68b800c
Patch #1519566 : Remove unused _tofill member.
...
Make begin_fill idempotent.
Update demo2 to demonstrate filling of concave shapes.
2006-07-10 22:11:28 +00:00
Tim Peters
63597f129d
Whitespace normalization.
2006-07-08 19:55:05 +00:00
Martin v. Löwis
2b88f63a3c
Bug #1514693 : Update turtle's heading when switching between
...
degrees and radians.
2006-07-03 10:19:49 +00:00
Martin v. Löwis
4c4300de4e
Reimplement turtle.circle using a polyline, to allow correct
...
filling of arcs. Also fixes #1514693 .
2006-07-03 10:05:30 +00:00
Martin v. Löwis
bd39c03c9f
Only setup canvas when it is first created.
...
Fixes #1514703
2006-07-03 09:44:00 +00:00
Georg Brandl
1be63af41d
Fix end_fill().
2006-06-28 20:23:25 +00:00
Martin v. Löwis
3798da0f92
Patch #812986 : Update the canvas even if not tracing.
2006-06-17 18:44:27 +00:00
Tim Peters
fd4c419332
Whitespace normalization.
2006-05-18 02:06:40 +00:00
Georg Brandl
e3a25838db
Patch #1486962 : Several bugs in the turtle Tk demo module were fixed
...
and several features added, such as speed and geometry control.
2006-05-17 14:56:04 +00:00
Walter Dörwald
70a6b49821
Replace backticks with repr() or "%r"
...
From SF patch #852334 .
2004-02-12 17:35:32 +00:00
Raymond Hettinger
af81c2e887
SF bug #685773 : 2 (more) bugs in turtle
...
The docs recommend filling by fill(1), drawing commands, fill(0).
However, the filling did not actually take place until the next
draw command. Fixed by issuing a null draw command at the end
of the fill method.
2003-06-09 08:50:57 +00:00
Raymond Hettinger
ff41c48a77
SF patch #701494 : more apply removals
2003-04-06 09:01:11 +00:00
Guido van Rossum
bffa52f07f
Whitespace normalization (get rid of tabs).
2002-09-29 00:25:51 +00:00
Guido van Rossum
fd2ede2aa8
Add the bulk of SF patch 595111 by Attila Babo.
...
This adds new methods heading(), setheading(), position(),
window_width(), window_height(), setx(), and sety(), to make this more
functionality-compatible with Logo turtle graphics (Attila's last
words, not mine :-). I had to fix the sety() code which was broken in
Attila's patch.
I'm not adopting the functionality change that Attila claimed was a
bugfix (no output without tracing), because I disagree that it's a
bug.
2002-09-23 16:55:05 +00:00
Martin v. Löwis
73b9b6679e
Update Canvas before computing width. Draw turtle at end of drawing circle.
...
Fixes #612595 . Will backport to 2.2.
2002-09-22 13:00:26 +00:00
Martin v. Löwis
4157ffbb96
Patch #536117 : Typo in turtle.py.
...
2.2.2 candidate.
2002-03-28 15:45:57 +00:00
Guido van Rossum
3c7a25a4d9
Applied SF patch #438424 by Josh Cogliati:
...
Python's logolike module turtle.py did not display
the turtle except when actually drawing lines.
This patch changes the turtle.py module so that
it displays the turtle at all times when tracing is
on. This is similar to the the way that logo works.
When tracing is off the turtle will not be displayed.
2001-08-09 16:42:07 +00:00
Guido van Rossum
a659efe5c7
Patch by kragen@pobox.com: When tracing is turned on, lines shorter
...
than a pixel don't get drawn at all. If you're building long curves
made of such lines, this is a bad thing.
2001-01-01 19:11:07 +00:00
Fred Drake
d038ca830f
Make reindent.py happy (convert everything to 4-space indents!).
2000-10-23 18:31:14 +00:00
Martin v. Löwis
4b6ea798cb
Don't rename Tkinter to Tk; closes bug 115714
...
Subclass Error from Exception.
2000-10-01 17:52:01 +00:00
Guido van Rossum
b241b67b89
Turtle graphics
1998-12-04 16:42:46 +00:00