Skip to content

Commit d7bfc33

Browse files
committed
Added versionchanged information to the two functions in the document
1 parent 53c1ac4 commit d7bfc33

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Doc/library/turtle.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,6 +1836,9 @@ Window control
18361836
>>> screen.bgpic()
18371837
"landscape.gif"
18381838

1839+
.. versionchanged:: next
1840+
Documented supported image file formats.
1841+
18391842

18401843
.. function:: clear()
18411844
:noindex:
@@ -2200,7 +2203,7 @@ Settings and special methods
22002203
.. function:: register_shape(name, shape=None)
22012204
addshape(name, shape=None)
22022205

2203-
There are three different ways to call this function:
2206+
There are four different ways to call this function:
22042207

22052208
(1) *name* is the name of an image file (PNG, GIF, PGM, and PPM) and *shape* is ``None``: Install the
22062209
corresponding image shape. ::
@@ -2234,6 +2237,10 @@ Settings and special methods
22342237
Add a turtle shape to TurtleScreen's shapelist. Only thusly registered
22352238
shapes can be used by issuing the command ``shape(shapename)``.
22362239

2240+
.. versionchanged:: next
2241+
Added a support for PNG, PGM, and PPM image formats.
2242+
Both a shape name and an image file name can be specified.(Second case)
2243+
22372244

22382245
.. function:: turtles()
22392246

0 commit comments

Comments
 (0)