Skip to content

Commit 3d2b4c6

Browse files
authored
Fix hyperlink conflict in turtle docs (GH-27592)
1 parent c34fa2b commit 3d2b4c6

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

Doc/library/turtle.rst

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ Methods of TurtleScreen/Screen
193193
Window control
194194
| :func:`bgcolor`
195195
| :func:`bgpic`
196-
| :func:`clear` | :func:`clearscreen`
197-
| :func:`reset` | :func:`resetscreen`
196+
| :func:`clearscreen`
197+
| :func:`resetscreen`
198198
| :func:`screensize`
199199
| :func:`setworldcoordinates`
200200
@@ -1069,7 +1069,6 @@ More drawing control
10691069
~~~~~~~~~~~~~~~~~~~~
10701070

10711071
.. function:: reset()
1072-
:noindex:
10731072

10741073
Delete the turtle's drawings from the screen, re-center the turtle and set
10751074
variables to the default values.
@@ -1091,7 +1090,6 @@ More drawing control
10911090

10921091

10931092
.. function:: clear()
1094-
:noindex:
10951093

10961094
Delete the turtle's drawings from the screen. Do not move turtle. State and
10971095
position of the turtle as well as drawings of other turtles are not affected.
@@ -1627,29 +1625,35 @@ Window control
16271625

16281626

16291627
.. function:: clear()
1630-
clearscreen()
1631-
1632-
Delete all drawings and all turtles from the TurtleScreen. Reset the now
1633-
empty TurtleScreen to its initial state: white background, no background
1634-
image, no event bindings and tracing on.
1628+
:noindex:
16351629

16361630
.. note::
16371631
This TurtleScreen method is available as a global function only under the
16381632
name ``clearscreen``. The global function ``clear`` is a different one
16391633
derived from the Turtle method ``clear``.
16401634

16411635

1642-
.. function:: reset()
1643-
resetscreen()
1636+
.. function:: clearscreen()
16441637

1645-
Reset all Turtles on the Screen to their initial state.
1638+
Delete all drawings and all turtles from the TurtleScreen. Reset the now
1639+
empty TurtleScreen to its initial state: white background, no background
1640+
image, no event bindings and tracing on.
1641+
1642+
1643+
.. function:: reset()
1644+
:noindex:
16461645

16471646
.. note::
16481647
This TurtleScreen method is available as a global function only under the
16491648
name ``resetscreen``. The global function ``reset`` is another one
16501649
derived from the Turtle method ``reset``.
16511650

16521651

1652+
.. function:: resetscreen()
1653+
1654+
Reset all Turtles on the Screen to their initial state.
1655+
1656+
16531657
.. function:: screensize(canvwidth=None, canvheight=None, bg=None)
16541658

16551659
:param canvwidth: positive integer, new width of canvas in pixels

0 commit comments

Comments
 (0)