Fix hyperlink conflict in turtle docs (GH-27592)

This commit is contained in:
Harry 2021-08-04 18:46:30 +01:00 committed by GitHub
parent c34fa2bb06
commit 3d2b4c6f18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,8 +193,8 @@ Methods of TurtleScreen/Screen
Window control Window control
| :func:`bgcolor` | :func:`bgcolor`
| :func:`bgpic` | :func:`bgpic`
| :func:`clear` | :func:`clearscreen` | :func:`clearscreen`
| :func:`reset` | :func:`resetscreen` | :func:`resetscreen`
| :func:`screensize` | :func:`screensize`
| :func:`setworldcoordinates` | :func:`setworldcoordinates`
@ -1069,7 +1069,6 @@ More drawing control
~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
.. function:: reset() .. function:: reset()
:noindex:
Delete the turtle's drawings from the screen, re-center the turtle and set Delete the turtle's drawings from the screen, re-center the turtle and set
variables to the default values. variables to the default values.
@ -1091,7 +1090,6 @@ More drawing control
.. function:: clear() .. function:: clear()
:noindex:
Delete the turtle's drawings from the screen. Do not move turtle. State and Delete the turtle's drawings from the screen. Do not move turtle. State and
position of the turtle as well as drawings of other turtles are not affected. position of the turtle as well as drawings of other turtles are not affected.
@ -1627,11 +1625,7 @@ Window control
.. function:: clear() .. function:: clear()
clearscreen() :noindex:
Delete all drawings and all turtles from the TurtleScreen. Reset the now
empty TurtleScreen to its initial state: white background, no background
image, no event bindings and tracing on.
.. note:: .. note::
This TurtleScreen method is available as a global function only under the This TurtleScreen method is available as a global function only under the
@ -1639,10 +1633,15 @@ Window control
derived from the Turtle method ``clear``. derived from the Turtle method ``clear``.
.. function:: reset() .. function:: clearscreen()
resetscreen()
Reset all Turtles on the Screen to their initial state. Delete all drawings and all turtles from the TurtleScreen. Reset the now
empty TurtleScreen to its initial state: white background, no background
image, no event bindings and tracing on.
.. function:: reset()
:noindex:
.. note:: .. note::
This TurtleScreen method is available as a global function only under the This TurtleScreen method is available as a global function only under the
@ -1650,6 +1649,11 @@ Window control
derived from the Turtle method ``reset``. derived from the Turtle method ``reset``.
.. function:: resetscreen()
Reset all Turtles on the Screen to their initial state.
.. function:: screensize(canvwidth=None, canvheight=None, bg=None) .. function:: screensize(canvwidth=None, canvheight=None, bg=None)
:param canvwidth: positive integer, new width of canvas in pixels :param canvwidth: positive integer, new width of canvas in pixels