mirror of https://github.com/python/cpython.git
[3.11] gh-101100: Fix sphinx warnings in `turtle.rst` (GH-109394) (#109417)
(cherry picked from commit 21e80f4c19
)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
This commit is contained in:
parent
f1f85a42ea
commit
8e23cd0bbb
|
@ -2298,7 +2298,7 @@ Public classes
|
|||
.. class:: RawTurtle(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`
|
||||
|
||||
Create a turtle. The turtle has all methods described above as "methods of
|
||||
|
@ -2313,7 +2313,7 @@ Public classes
|
|||
|
||||
.. 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
|
||||
above.
|
||||
|
@ -2397,7 +2397,7 @@ instance if one is not already present.
|
|||
|
||||
``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
|
||||
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`.
|
||||
|
||||
|
||||
|
@ -2405,7 +2405,7 @@ or :class:`TurtleScreen`.
|
|||
turtle. :class:`Screen` is a subclass of ``TurtleScreen``, and
|
||||
includes :ref:`some additional methods <screenspecific>` for managing its
|
||||
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.
|
||||
|
||||
The functional interface for turtle graphics uses the various methods of
|
||||
|
|
|
@ -132,7 +132,6 @@ Doc/library/tkinter.scrolledtext.rst
|
|||
Doc/library/tkinter.ttk.rst
|
||||
Doc/library/traceback.rst
|
||||
Doc/library/tty.rst
|
||||
Doc/library/turtle.rst
|
||||
Doc/library/unittest.mock.rst
|
||||
Doc/library/unittest.rst
|
||||
Doc/library/urllib.parse.rst
|
||||
|
|
Loading…
Reference in New Issue