mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
[3.12] gh-101100: Fix sphinx warnings in turtle.rst
(GH-109394) (#109416)
gh-101100: Fix sphinx warnings in `turtle.rst` (GH-109394)
(cherry picked from commit 21e80f4c19
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
3eae45f94d
commit
3bb8075bcb
2 changed files with 4 additions and 5 deletions
|
@ -2329,7 +2329,7 @@ Public classes
|
||||||
.. class:: RawTurtle(canvas)
|
.. class:: RawTurtle(canvas)
|
||||||
RawPen(canvas)
|
RawPen(canvas)
|
||||||
|
|
||||||
:param canvas: a :class:`tkinter.Canvas`, a :class:`ScrolledCanvas` or a
|
:param canvas: a :class:`!tkinter.Canvas`, a :class:`ScrolledCanvas` or a
|
||||||
:class:`TurtleScreen`
|
:class:`TurtleScreen`
|
||||||
|
|
||||||
Create a turtle. The turtle has all methods described above as "methods of
|
Create a turtle. The turtle has all methods described above as "methods of
|
||||||
|
@ -2344,7 +2344,7 @@ Public classes
|
||||||
|
|
||||||
.. class:: TurtleScreen(cv)
|
.. class:: TurtleScreen(cv)
|
||||||
|
|
||||||
:param cv: a :class:`tkinter.Canvas`
|
:param cv: a :class:`!tkinter.Canvas`
|
||||||
|
|
||||||
Provides screen oriented methods like :func:`bgcolor` etc. that are described
|
Provides screen oriented methods like :func:`bgcolor` etc. that are described
|
||||||
above.
|
above.
|
||||||
|
@ -2428,7 +2428,7 @@ instance if one is not already present.
|
||||||
|
|
||||||
``Turtle`` is a subclass of :class:`RawTurtle`, which *doesn't* automatically
|
``Turtle`` is a subclass of :class:`RawTurtle`, which *doesn't* automatically
|
||||||
create a drawing surface - a *canvas* will need to be provided or created for
|
create a drawing surface - a *canvas* will need to be provided or created for
|
||||||
it. The *canvas* can be a :class:`tkinter.Canvas`, :class:`ScrolledCanvas`
|
it. The *canvas* can be a :class:`!tkinter.Canvas`, :class:`ScrolledCanvas`
|
||||||
or :class:`TurtleScreen`.
|
or :class:`TurtleScreen`.
|
||||||
|
|
||||||
|
|
||||||
|
@ -2436,7 +2436,7 @@ or :class:`TurtleScreen`.
|
||||||
turtle. :class:`Screen` is a subclass of ``TurtleScreen``, and
|
turtle. :class:`Screen` is a subclass of ``TurtleScreen``, and
|
||||||
includes :ref:`some additional methods <screenspecific>` for managing its
|
includes :ref:`some additional methods <screenspecific>` for managing its
|
||||||
appearance (including size and title) and behaviour. ``TurtleScreen``'s
|
appearance (including size and title) and behaviour. ``TurtleScreen``'s
|
||||||
constructor needs a :class:`tkinter.Canvas` or a
|
constructor needs a :class:`!tkinter.Canvas` or a
|
||||||
:class:`ScrolledCanvas` as an argument.
|
:class:`ScrolledCanvas` as an argument.
|
||||||
|
|
||||||
The functional interface for turtle graphics uses the various methods of
|
The functional interface for turtle graphics uses the various methods of
|
||||||
|
|
|
@ -143,7 +143,6 @@ Doc/library/tkinter.tix.rst
|
||||||
Doc/library/tkinter.ttk.rst
|
Doc/library/tkinter.ttk.rst
|
||||||
Doc/library/traceback.rst
|
Doc/library/traceback.rst
|
||||||
Doc/library/tty.rst
|
Doc/library/tty.rst
|
||||||
Doc/library/turtle.rst
|
|
||||||
Doc/library/unittest.mock.rst
|
Doc/library/unittest.mock.rst
|
||||||
Doc/library/unittest.rst
|
Doc/library/unittest.rst
|
||||||
Doc/library/urllib.parse.rst
|
Doc/library/urllib.parse.rst
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue