Skip to content

bpo-44760: Fix hyperlink conflict in turtle docs #27592

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions Doc/library/turtle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ Methods of TurtleScreen/Screen
Window control
| :func:`bgcolor`
| :func:`bgpic`
| :func:`clear` | :func:`clearscreen`
| :func:`reset` | :func:`resetscreen`
| :func:`clearscreen`
| :func:`resetscreen`
| :func:`screensize`
| :func:`setworldcoordinates`

Expand Down Expand Up @@ -1069,7 +1069,6 @@ More drawing control
~~~~~~~~~~~~~~~~~~~~

.. function:: reset()
:noindex:

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


.. function:: clear()
:noindex:

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.
Expand Down Expand Up @@ -1627,29 +1625,35 @@ Window control


.. function:: clear()
clearscreen()

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.
:noindex:

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


.. function:: reset()
resetscreen()
.. function:: clearscreen()

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::
This TurtleScreen method is available as a global function only under the
name ``resetscreen``. The global function ``reset`` is another one
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)

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