Fix patches
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python312?expand=0&rev=10
This commit is contained in:
parent
a91ccfd104
commit
cde4f6d8a6
@ -6,7 +6,7 @@ unchanged:
|
|||||||
|
|
||||||
--- a/Doc/library/turtle.rst
|
--- a/Doc/library/turtle.rst
|
||||||
+++ b/Doc/library/turtle.rst
|
+++ b/Doc/library/turtle.rst
|
||||||
@@ -250,7 +250,6 @@ Turtle motion
|
@@ -251,7 +251,6 @@ Turtle motion
|
||||||
turtle is headed.
|
turtle is headed.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -14,7 +14,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.position()
|
>>> turtle.position()
|
||||||
(0.00,0.00)
|
(0.00,0.00)
|
||||||
@@ -277,7 +276,6 @@ Turtle motion
|
@@ -278,7 +277,6 @@ Turtle motion
|
||||||
>>> turtle.goto(0, 0)
|
>>> turtle.goto(0, 0)
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -22,7 +22,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.position()
|
>>> turtle.position()
|
||||||
(0.00,0.00)
|
(0.00,0.00)
|
||||||
@@ -296,13 +294,11 @@ Turtle motion
|
@@ -297,13 +295,11 @@ Turtle motion
|
||||||
orientation depends on the turtle mode, see :func:`mode`.
|
orientation depends on the turtle mode, see :func:`mode`.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -36,7 +36,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.heading()
|
>>> turtle.heading()
|
||||||
22.0
|
22.0
|
||||||
@@ -321,13 +317,11 @@ Turtle motion
|
@@ -322,13 +318,11 @@ Turtle motion
|
||||||
orientation depends on the turtle mode, see :func:`mode`.
|
orientation depends on the turtle mode, see :func:`mode`.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -50,7 +50,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.heading()
|
>>> turtle.heading()
|
||||||
22.0
|
22.0
|
||||||
@@ -350,13 +344,11 @@ Turtle motion
|
@@ -351,13 +345,11 @@ Turtle motion
|
||||||
not change the turtle's orientation.
|
not change the turtle's orientation.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -62,9 +62,9 @@ unchanged:
|
|||||||
.. doctest::
|
.. doctest::
|
||||||
- :skipif: _tkinter is None
|
- :skipif: _tkinter is None
|
||||||
|
|
||||||
>>> tp = turtle.pos()
|
>>> tp = turtle.pos()
|
||||||
>>> tp
|
>>> tp
|
||||||
@@ -380,13 +372,11 @@ Turtle motion
|
@@ -419,13 +411,11 @@ Turtle motion
|
||||||
unchanged.
|
unchanged.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -78,7 +78,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.position()
|
>>> turtle.position()
|
||||||
(0.00,240.00)
|
(0.00,240.00)
|
||||||
@@ -402,13 +392,11 @@ Turtle motion
|
@@ -441,13 +431,11 @@ Turtle motion
|
||||||
Set the turtle's second coordinate to *y*, leave first coordinate unchanged.
|
Set the turtle's second coordinate to *y*, leave first coordinate unchanged.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -92,7 +92,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.position()
|
>>> turtle.position()
|
||||||
(0.00,40.00)
|
(0.00,40.00)
|
||||||
@@ -435,7 +423,6 @@ Turtle motion
|
@@ -474,7 +462,6 @@ Turtle motion
|
||||||
=================== ====================
|
=================== ====================
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -100,7 +100,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.setheading(90)
|
>>> turtle.setheading(90)
|
||||||
>>> turtle.heading()
|
>>> turtle.heading()
|
||||||
@@ -448,14 +435,12 @@ Turtle motion
|
@@ -487,14 +474,12 @@ Turtle motion
|
||||||
its start-orientation (which depends on the mode, see :func:`mode`).
|
its start-orientation (which depends on the mode, see :func:`mode`).
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -115,7 +115,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.heading()
|
>>> turtle.heading()
|
||||||
90.0
|
90.0
|
||||||
@@ -487,7 +472,6 @@ Turtle motion
|
@@ -526,7 +511,6 @@ Turtle motion
|
||||||
calculated automatically. May be used to draw regular polygons.
|
calculated automatically. May be used to draw regular polygons.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -123,7 +123,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.position()
|
>>> turtle.position()
|
||||||
@@ -516,7 +500,6 @@ Turtle motion
|
@@ -555,7 +539,6 @@ Turtle motion
|
||||||
|
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -131,15 +131,15 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.dot()
|
>>> turtle.dot()
|
||||||
@@ -534,7 +517,6 @@ Turtle motion
|
@@ -573,7 +556,6 @@ Turtle motion
|
||||||
it by calling ``clearstamp(stamp_id)``.
|
it by calling ``clearstamp(stamp_id)``.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
- :skipif: _tkinter is None
|
- :skipif: _tkinter is None
|
||||||
|
|
||||||
>>> turtle.color("blue")
|
>>> turtle.color("blue")
|
||||||
>>> turtle.stamp()
|
>>> stamp_id = turtle.stamp()
|
||||||
@@ -550,7 +532,6 @@ Turtle motion
|
@@ -588,7 +570,6 @@ Turtle motion
|
||||||
Delete stamp with given *stampid*.
|
Delete stamp with given *stampid*.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -147,7 +147,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.position()
|
>>> turtle.position()
|
||||||
(150.00,-0.00)
|
(150.00,-0.00)
|
||||||
@@ -595,7 +576,6 @@ Turtle motion
|
@@ -626,7 +607,6 @@ Turtle motion
|
||||||
undo actions is determined by the size of the undobuffer.
|
undo actions is determined by the size of the undobuffer.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -155,7 +155,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> for i in range(4):
|
>>> for i in range(4):
|
||||||
... turtle.fd(50); turtle.lt(80)
|
... turtle.fd(50); turtle.lt(80)
|
||||||
@@ -628,7 +608,6 @@ Turtle motion
|
@@ -659,7 +639,6 @@ Turtle motion
|
||||||
turtle turn instantly.
|
turtle turn instantly.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -163,7 +163,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.speed()
|
>>> turtle.speed()
|
||||||
3
|
3
|
||||||
@@ -649,7 +628,6 @@ Tell Turtle's state
|
@@ -680,7 +659,6 @@ Tell Turtle's state
|
||||||
Return the turtle's current location (x,y) (as a :class:`Vec2D` vector).
|
Return the turtle's current location (x,y) (as a :class:`Vec2D` vector).
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -171,7 +171,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.pos()
|
>>> turtle.pos()
|
||||||
(440.00,-0.00)
|
(440.00,-0.00)
|
||||||
@@ -665,7 +643,6 @@ Tell Turtle's state
|
@@ -696,7 +674,6 @@ Tell Turtle's state
|
||||||
orientation which depends on the mode - "standard"/"world" or "logo".
|
orientation which depends on the mode - "standard"/"world" or "logo".
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -179,7 +179,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.goto(10, 10)
|
>>> turtle.goto(10, 10)
|
||||||
>>> turtle.towards(0,0)
|
>>> turtle.towards(0,0)
|
||||||
@@ -677,7 +654,6 @@ Tell Turtle's state
|
@@ -708,7 +685,6 @@ Tell Turtle's state
|
||||||
Return the turtle's x coordinate.
|
Return the turtle's x coordinate.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -187,7 +187,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.left(50)
|
>>> turtle.left(50)
|
||||||
@@ -693,7 +669,6 @@ Tell Turtle's state
|
@@ -724,7 +700,6 @@ Tell Turtle's state
|
||||||
Return the turtle's y coordinate.
|
Return the turtle's y coordinate.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -195,7 +195,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.left(60)
|
>>> turtle.left(60)
|
||||||
@@ -710,7 +685,6 @@ Tell Turtle's state
|
@@ -741,7 +716,6 @@ Tell Turtle's state
|
||||||
:func:`mode`).
|
:func:`mode`).
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -203,7 +203,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.left(67)
|
>>> turtle.left(67)
|
||||||
@@ -727,7 +701,6 @@ Tell Turtle's state
|
@@ -758,7 +732,6 @@ Tell Turtle's state
|
||||||
other turtle, in turtle step units.
|
other turtle, in turtle step units.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -211,7 +211,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.distance(30,40)
|
>>> turtle.distance(30,40)
|
||||||
@@ -751,7 +724,6 @@ Settings for measurement
|
@@ -782,7 +755,6 @@ Settings for measurement
|
||||||
Default value is 360 degrees.
|
Default value is 360 degrees.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -219,7 +219,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.left(90)
|
>>> turtle.left(90)
|
||||||
@@ -774,7 +746,6 @@ Settings for measurement
|
@@ -805,7 +777,6 @@ Settings for measurement
|
||||||
``degrees(2*math.pi)``.
|
``degrees(2*math.pi)``.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -227,7 +227,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.left(90)
|
>>> turtle.left(90)
|
||||||
@@ -785,7 +756,6 @@ Settings for measurement
|
@@ -816,7 +787,6 @@ Settings for measurement
|
||||||
1.5707963267948966
|
1.5707963267948966
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -235,7 +235,7 @@ unchanged:
|
|||||||
:hide:
|
:hide:
|
||||||
|
|
||||||
>>> turtle.degrees(360)
|
>>> turtle.degrees(360)
|
||||||
@@ -821,7 +791,6 @@ Drawing state
|
@@ -852,7 +822,6 @@ Drawing state
|
||||||
thickness. If no argument is given, the current pensize is returned.
|
thickness. If no argument is given, the current pensize is returned.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -243,7 +243,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.pensize()
|
>>> turtle.pensize()
|
||||||
1
|
1
|
||||||
@@ -853,7 +822,6 @@ Drawing state
|
@@ -884,7 +853,6 @@ Drawing state
|
||||||
attributes in one statement.
|
attributes in one statement.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -251,7 +251,7 @@ unchanged:
|
|||||||
:options: +NORMALIZE_WHITESPACE
|
:options: +NORMALIZE_WHITESPACE
|
||||||
|
|
||||||
>>> turtle.pen(fillcolor="black", pencolor="red", pensize=10)
|
>>> turtle.pen(fillcolor="black", pencolor="red", pensize=10)
|
||||||
@@ -876,7 +844,6 @@ Drawing state
|
@@ -907,7 +875,6 @@ Drawing state
|
||||||
Return ``True`` if pen is down, ``False`` if it's up.
|
Return ``True`` if pen is down, ``False`` if it's up.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -259,31 +259,31 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.penup()
|
>>> turtle.penup()
|
||||||
>>> turtle.isdown()
|
>>> turtle.isdown()
|
||||||
@@ -917,7 +884,6 @@ Color control
|
@@ -948,7 +915,6 @@ Color control
|
||||||
newly set pencolor.
|
newly set pencolor.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
- :skipif: _tkinter is None
|
- :skipif: _tkinter is None
|
||||||
|
|
||||||
>>> colormode()
|
>>> colormode()
|
||||||
1.0
|
1.0
|
||||||
@@ -966,7 +932,6 @@ Color control
|
@@ -997,7 +963,6 @@ Color control
|
||||||
with the newly set fillcolor.
|
with the newly set fillcolor.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
- :skipif: _tkinter is None
|
- :skipif: _tkinter is None
|
||||||
|
|
||||||
>>> turtle.fillcolor("violet")
|
>>> turtle.fillcolor("violet")
|
||||||
>>> turtle.fillcolor()
|
>>> turtle.fillcolor()
|
||||||
@@ -1005,7 +970,6 @@ Color control
|
@@ -1036,7 +1001,6 @@ Color control
|
||||||
with the newly set colors.
|
with the newly set colors.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
- :skipif: _tkinter is None
|
- :skipif: _tkinter is None
|
||||||
|
|
||||||
>>> turtle.color("red", "green")
|
>>> turtle.color("red", "green")
|
||||||
>>> turtle.color()
|
>>> turtle.color()
|
||||||
@@ -1022,7 +986,6 @@ Filling
|
@@ -1053,7 +1017,6 @@ Filling
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -291,15 +291,15 @@ unchanged:
|
|||||||
:hide:
|
:hide:
|
||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
@@ -1032,7 +995,6 @@ Filling
|
@@ -1063,7 +1026,6 @@ Filling
|
||||||
Return fillstate (``True`` if filling, ``False`` else).
|
Return fillstate (``True`` if filling, ``False`` else).
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
- :skipif: _tkinter is None
|
- :skipif: _tkinter is None
|
||||||
|
|
||||||
>>> turtle.begin_fill()
|
>>> turtle.begin_fill()
|
||||||
>>> if turtle.filling():
|
>>> if turtle.filling():
|
||||||
@@ -1057,7 +1019,6 @@ Filling
|
@@ -1088,7 +1050,6 @@ Filling
|
||||||
above may be either all yellow or have some white regions.
|
above may be either all yellow or have some white regions.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -307,7 +307,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.color("black", "red")
|
>>> turtle.color("black", "red")
|
||||||
>>> turtle.begin_fill()
|
>>> turtle.begin_fill()
|
||||||
@@ -1074,7 +1035,6 @@ More drawing control
|
@@ -1105,7 +1066,6 @@ More drawing control
|
||||||
variables to the default values.
|
variables to the default values.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -315,7 +315,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.goto(0,-22)
|
>>> turtle.goto(0,-22)
|
||||||
>>> turtle.left(100)
|
>>> turtle.left(100)
|
||||||
@@ -1125,7 +1085,6 @@ Visibility
|
@@ -1156,7 +1116,6 @@ Visibility
|
||||||
drawing observably.
|
drawing observably.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -323,7 +323,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.hideturtle()
|
>>> turtle.hideturtle()
|
||||||
|
|
||||||
@@ -1136,7 +1095,6 @@ Visibility
|
@@ -1167,7 +1126,6 @@ Visibility
|
||||||
Make the turtle visible.
|
Make the turtle visible.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -331,7 +331,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.showturtle()
|
>>> turtle.showturtle()
|
||||||
|
|
||||||
@@ -1167,7 +1125,6 @@ Appearance
|
@@ -1198,7 +1156,6 @@ Appearance
|
||||||
deal with shapes see Screen method :func:`register_shape`.
|
deal with shapes see Screen method :func:`register_shape`.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -339,7 +339,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.shape()
|
>>> turtle.shape()
|
||||||
'classic'
|
'classic'
|
||||||
@@ -1193,7 +1150,6 @@ Appearance
|
@@ -1224,7 +1181,6 @@ Appearance
|
||||||
``resizemode("user")`` is called by :func:`shapesize` when used with arguments.
|
``resizemode("user")`` is called by :func:`shapesize` when used with arguments.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -347,23 +347,23 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.resizemode()
|
>>> turtle.resizemode()
|
||||||
'noresize'
|
'noresize'
|
||||||
@@ -1217,7 +1173,6 @@ Appearance
|
@@ -1248,7 +1204,6 @@ Appearance
|
||||||
of the shapes's outline.
|
of the shape's outline.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
- :skipif: _tkinter is None
|
- :skipif: _tkinter is None
|
||||||
|
|
||||||
>>> turtle.shapesize()
|
>>> turtle.shapesize()
|
||||||
(1.0, 1.0, 1)
|
(1.0, 1.0, 1)
|
||||||
@@ -1242,7 +1197,6 @@ Appearance
|
@@ -1273,7 +1228,6 @@ Appearance
|
||||||
heading of the turtle are sheared.
|
heading of the turtle are sheared.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
- :skipif: _tkinter is None
|
- :skipif: _tkinter is None
|
||||||
|
|
||||||
>>> turtle.shape("circle")
|
>>> turtle.shape("circle")
|
||||||
>>> turtle.shapesize(5,2)
|
>>> turtle.shapesize(5,2)
|
||||||
@@ -1259,7 +1213,6 @@ Appearance
|
@@ -1290,7 +1244,6 @@ Appearance
|
||||||
change the turtle's heading (direction of movement).
|
change the turtle's heading (direction of movement).
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -371,7 +371,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.reset()
|
>>> turtle.reset()
|
||||||
>>> turtle.shape("circle")
|
>>> turtle.shape("circle")
|
||||||
@@ -1305,7 +1258,6 @@ Appearance
|
@@ -1336,7 +1289,6 @@ Appearance
|
||||||
turtle (its direction of movement).
|
turtle (its direction of movement).
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -379,7 +379,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.reset()
|
>>> turtle.reset()
|
||||||
>>> turtle.shape("circle")
|
>>> turtle.shape("circle")
|
||||||
@@ -1334,7 +1286,6 @@ Appearance
|
@@ -1365,7 +1317,6 @@ Appearance
|
||||||
given matrix.
|
given matrix.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -387,7 +387,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle = Turtle()
|
>>> turtle = Turtle()
|
||||||
>>> turtle.shape("square")
|
>>> turtle.shape("square")
|
||||||
@@ -1350,7 +1301,6 @@ Appearance
|
@@ -1381,7 +1332,6 @@ Appearance
|
||||||
can be used to define a new shape or components of a compound shape.
|
can be used to define a new shape or components of a compound shape.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -395,7 +395,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.shape("square")
|
>>> turtle.shape("square")
|
||||||
>>> turtle.shapetransform(4, -1, 0, 2)
|
>>> turtle.shapetransform(4, -1, 0, 2)
|
||||||
@@ -1375,7 +1325,6 @@ Using events
|
@@ -1406,7 +1356,6 @@ Using events
|
||||||
procedural way:
|
procedural way:
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -403,7 +403,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> def turn(x, y):
|
>>> def turn(x, y):
|
||||||
... left(180)
|
... left(180)
|
||||||
@@ -1396,7 +1345,6 @@ Using events
|
@@ -1427,7 +1376,6 @@ Using events
|
||||||
``None``, existing bindings are removed.
|
``None``, existing bindings are removed.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -411,7 +411,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> class MyTurtle(Turtle):
|
>>> class MyTurtle(Turtle):
|
||||||
... def glow(self,x,y):
|
... def glow(self,x,y):
|
||||||
@@ -1424,7 +1372,6 @@ Using events
|
@@ -1455,7 +1403,6 @@ Using events
|
||||||
mouse-click event on that turtle.
|
mouse-click event on that turtle.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -419,7 +419,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.ondrag(turtle.goto)
|
>>> turtle.ondrag(turtle.goto)
|
||||||
|
|
||||||
@@ -1452,7 +1399,6 @@ Special Turtle methods
|
@@ -1483,7 +1430,6 @@ Special Turtle methods
|
||||||
Return the last recorded polygon.
|
Return the last recorded polygon.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -427,7 +427,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.home()
|
>>> turtle.home()
|
||||||
>>> turtle.begin_poly()
|
>>> turtle.begin_poly()
|
||||||
@@ -1472,7 +1418,6 @@ Special Turtle methods
|
@@ -1503,7 +1449,6 @@ Special Turtle methods
|
||||||
turtle properties.
|
turtle properties.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -435,7 +435,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> mick = Turtle()
|
>>> mick = Turtle()
|
||||||
>>> joe = mick.clone()
|
>>> joe = mick.clone()
|
||||||
@@ -1485,7 +1430,6 @@ Special Turtle methods
|
@@ -1516,7 +1461,6 @@ Special Turtle methods
|
||||||
return the "anonymous turtle":
|
return the "anonymous turtle":
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -443,7 +443,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> pet = getturtle()
|
>>> pet = getturtle()
|
||||||
>>> pet.fd(50)
|
>>> pet.fd(50)
|
||||||
@@ -1499,7 +1443,6 @@ Special Turtle methods
|
@@ -1530,7 +1474,6 @@ Special Turtle methods
|
||||||
TurtleScreen methods can then be called for that object.
|
TurtleScreen methods can then be called for that object.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -451,7 +451,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> ts = turtle.getscreen()
|
>>> ts = turtle.getscreen()
|
||||||
>>> ts
|
>>> ts
|
||||||
@@ -1517,7 +1460,6 @@ Special Turtle methods
|
@@ -1548,7 +1491,6 @@ Special Turtle methods
|
||||||
``None``, the undobuffer is disabled.
|
``None``, the undobuffer is disabled.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -459,7 +459,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> turtle.setundobuffer(42)
|
>>> turtle.setundobuffer(42)
|
||||||
|
|
||||||
@@ -1527,7 +1469,6 @@ Special Turtle methods
|
@@ -1558,7 +1500,6 @@ Special Turtle methods
|
||||||
Return number of entries in the undobuffer.
|
Return number of entries in the undobuffer.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -467,7 +467,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> while undobufferentries():
|
>>> while undobufferentries():
|
||||||
... undo()
|
... undo()
|
||||||
@@ -1550,7 +1491,6 @@ below:
|
@@ -1581,7 +1522,6 @@ below:
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -475,7 +475,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> s = Shape("compound")
|
>>> s = Shape("compound")
|
||||||
>>> poly1 = ((0,0),(10,-5),(0,10),(-10,-5))
|
>>> poly1 = ((0,0),(10,-5),(0,10),(-10,-5))
|
||||||
@@ -1561,7 +1501,6 @@ below:
|
@@ -1592,7 +1532,6 @@ below:
|
||||||
3. Now add the Shape to the Screen's shapelist and use it:
|
3. Now add the Shape to the Screen's shapelist and use it:
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -483,7 +483,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> register_shape("myshape", s)
|
>>> register_shape("myshape", s)
|
||||||
>>> shape("myshape")
|
>>> shape("myshape")
|
||||||
@@ -1581,7 +1520,6 @@ Most of the examples in this section ref
|
@@ -1612,7 +1551,6 @@ Most of the examples in this section ref
|
||||||
``screen``.
|
``screen``.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -491,7 +491,7 @@ unchanged:
|
|||||||
:hide:
|
:hide:
|
||||||
|
|
||||||
>>> screen = Screen()
|
>>> screen = Screen()
|
||||||
@@ -1598,7 +1536,6 @@ Window control
|
@@ -1629,7 +1567,6 @@ Window control
|
||||||
Set or return background color of the TurtleScreen.
|
Set or return background color of the TurtleScreen.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -499,7 +499,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.bgcolor("orange")
|
>>> screen.bgcolor("orange")
|
||||||
>>> screen.bgcolor()
|
>>> screen.bgcolor()
|
||||||
@@ -1690,7 +1627,6 @@ Window control
|
@@ -1721,7 +1658,6 @@ Window control
|
||||||
distorted.
|
distorted.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -507,7 +507,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.reset()
|
>>> screen.reset()
|
||||||
>>> screen.setworldcoordinates(-50,-7.5,50,7.5)
|
>>> screen.setworldcoordinates(-50,-7.5,50,7.5)
|
||||||
@@ -1701,7 +1637,6 @@ Window control
|
@@ -1732,7 +1668,6 @@ Window control
|
||||||
... left(45); fd(2) # a regular octagon
|
... left(45); fd(2) # a regular octagon
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -515,7 +515,7 @@ unchanged:
|
|||||||
:hide:
|
:hide:
|
||||||
|
|
||||||
>>> screen.reset()
|
>>> screen.reset()
|
||||||
@@ -1723,7 +1658,6 @@ Animation control
|
@@ -1754,7 +1689,6 @@ Animation control
|
||||||
Optional argument:
|
Optional argument:
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -523,7 +523,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.delay()
|
>>> screen.delay()
|
||||||
10
|
10
|
||||||
@@ -1745,7 +1679,6 @@ Animation control
|
@@ -1776,7 +1710,6 @@ Animation control
|
||||||
:func:`delay`).
|
:func:`delay`).
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -531,7 +531,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.tracer(8, 25)
|
>>> screen.tracer(8, 25)
|
||||||
>>> dist = 2
|
>>> dist = 2
|
||||||
@@ -1782,7 +1715,6 @@ Using screen events
|
@@ -1813,7 +1746,6 @@ Using screen events
|
||||||
must have the focus. (See method :func:`listen`.)
|
must have the focus. (See method :func:`listen`.)
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -539,7 +539,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> def f():
|
>>> def f():
|
||||||
... fd(50)
|
... fd(50)
|
||||||
@@ -1803,7 +1735,6 @@ Using screen events
|
@@ -1834,7 +1766,6 @@ Using screen events
|
||||||
must have focus. (See method :func:`listen`.)
|
must have focus. (See method :func:`listen`.)
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -547,7 +547,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> def f():
|
>>> def f():
|
||||||
... fd(50)
|
... fd(50)
|
||||||
@@ -1828,7 +1759,6 @@ Using screen events
|
@@ -1859,7 +1790,6 @@ Using screen events
|
||||||
named ``turtle``:
|
named ``turtle``:
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -555,7 +555,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.onclick(turtle.goto) # Subsequently clicking into the TurtleScreen will
|
>>> screen.onclick(turtle.goto) # Subsequently clicking into the TurtleScreen will
|
||||||
>>> # make the turtle move to the clicked point.
|
>>> # make the turtle move to the clicked point.
|
||||||
@@ -1848,7 +1778,6 @@ Using screen events
|
@@ -1879,7 +1809,6 @@ Using screen events
|
||||||
Install a timer that calls *fun* after *t* milliseconds.
|
Install a timer that calls *fun* after *t* milliseconds.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -563,7 +563,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> running = True
|
>>> running = True
|
||||||
>>> def f():
|
>>> def f():
|
||||||
@@ -1930,7 +1859,6 @@ Settings and special methods
|
@@ -1961,7 +1890,6 @@ Settings and special methods
|
||||||
============ ========================= ===================
|
============ ========================= ===================
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -571,7 +571,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> mode("logo") # resets turtle heading to north
|
>>> mode("logo") # resets turtle heading to north
|
||||||
>>> mode()
|
>>> mode()
|
||||||
@@ -1945,7 +1873,6 @@ Settings and special methods
|
@@ -1976,7 +1904,6 @@ Settings and special methods
|
||||||
values of color triples have to be in the range 0..*cmode*.
|
values of color triples have to be in the range 0..*cmode*.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -579,7 +579,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.colormode(1)
|
>>> screen.colormode(1)
|
||||||
>>> turtle.pencolor(240, 160, 80)
|
>>> turtle.pencolor(240, 160, 80)
|
||||||
@@ -1966,7 +1893,6 @@ Settings and special methods
|
@@ -1997,7 +1924,6 @@ Settings and special methods
|
||||||
do with a Tkinter Canvas.
|
do with a Tkinter Canvas.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -587,7 +587,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> cv = screen.getcanvas()
|
>>> cv = screen.getcanvas()
|
||||||
>>> cv
|
>>> cv
|
||||||
@@ -1978,7 +1904,6 @@ Settings and special methods
|
@@ -2009,7 +1935,6 @@ Settings and special methods
|
||||||
Return a list of names of all currently available turtle shapes.
|
Return a list of names of all currently available turtle shapes.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -595,7 +595,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.getshapes()
|
>>> screen.getshapes()
|
||||||
['arrow', 'blank', 'circle', ..., 'turtle']
|
['arrow', 'blank', 'circle', ..., 'turtle']
|
||||||
@@ -2002,7 +1927,6 @@ Settings and special methods
|
@@ -2033,7 +1958,6 @@ Settings and special methods
|
||||||
coordinates: Install the corresponding polygon shape.
|
coordinates: Install the corresponding polygon shape.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -603,7 +603,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.register_shape("triangle", ((5,-3), (0,5), (-5,-3)))
|
>>> screen.register_shape("triangle", ((5,-3), (0,5), (-5,-3)))
|
||||||
|
|
||||||
@@ -2018,7 +1942,6 @@ Settings and special methods
|
@@ -2049,7 +1973,6 @@ Settings and special methods
|
||||||
Return the list of turtles on the screen.
|
Return the list of turtles on the screen.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -611,7 +611,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> for turtle in screen.turtles():
|
>>> for turtle in screen.turtles():
|
||||||
... turtle.color("red")
|
... turtle.color("red")
|
||||||
@@ -2080,7 +2003,6 @@ Methods specific to Screen, not inherite
|
@@ -2111,7 +2034,6 @@ Methods specific to Screen, not inherite
|
||||||
center window vertically
|
center window vertically
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -619,7 +619,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.setup (width=200, height=200, startx=0, starty=0)
|
>>> screen.setup (width=200, height=200, startx=0, starty=0)
|
||||||
>>> # sets window to 200x200 pixels, in upper left of screen
|
>>> # sets window to 200x200 pixels, in upper left of screen
|
||||||
@@ -2096,7 +2018,6 @@ Methods specific to Screen, not inherite
|
@@ -2127,7 +2049,6 @@ Methods specific to Screen, not inherite
|
||||||
Set title of turtle window to *titlestring*.
|
Set title of turtle window to *titlestring*.
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -627,7 +627,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> screen.title("Welcome to the turtle zoo!")
|
>>> screen.title("Welcome to the turtle zoo!")
|
||||||
|
|
||||||
@@ -2167,7 +2088,6 @@ Public classes
|
@@ -2198,7 +2119,6 @@ Public classes
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
@ -635,7 +635,7 @@ unchanged:
|
|||||||
|
|
||||||
>>> poly = ((0,0),(10,-5),(0,10),(-10,-5))
|
>>> poly = ((0,0),(10,-5),(0,10),(-10,-5))
|
||||||
>>> s = Shape("compound")
|
>>> s = Shape("compound")
|
||||||
@@ -2514,7 +2434,6 @@ Changes since Python 3.0
|
@@ -2549,7 +2469,6 @@ Changes since Python 3.0
|
||||||
|
|
||||||
|
|
||||||
.. doctest::
|
.. doctest::
|
||||||
|
@ -424,12 +424,12 @@ other applications.
|
|||||||
%patch09 -p1
|
%patch09 -p1
|
||||||
%patch15 -p1
|
%patch15 -p1
|
||||||
%patch29 -p1
|
%patch29 -p1
|
||||||
%if 0%{?suse_version} <= 1500
|
# %%if 0%%{?suse_version} <= 1500
|
||||||
%patch33 -p1
|
%patch33 -p1
|
||||||
%endif
|
# %%endif
|
||||||
%if 0%{?sle_version} && 0%{?sle_version} <= 150300
|
# %%if 0%%{?sle_version} && 0%%{?sle_version} <= 150300
|
||||||
%patch34 -p1
|
%patch34 -p1
|
||||||
%endif
|
# %%endif
|
||||||
%patch35 -p1
|
%patch35 -p1
|
||||||
|
|
||||||
# drop Autoconf version requirement
|
# drop Autoconf version requirement
|
||||||
|
Loading…
x
Reference in New Issue
Block a user