diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-09-29 22:19:08 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-09-29 22:19:08 (GMT) |
commit | 601149bb8e4fd200cc5b0b670f34c608c64e0783 (patch) | |
tree | 62044eeb592cfc0305f8d0b63985231b0053ce03 /Doc/library/turtle.rst | |
parent | 28acc6cae585d3cae81755f52fed66a4cb04c128 (diff) | |
download | cpython-601149bb8e4fd200cc5b0b670f34c608c64e0783.zip cpython-601149bb8e4fd200cc5b0b670f34c608c64e0783.tar.gz cpython-601149bb8e4fd200cc5b0b670f34c608c64e0783.tar.bz2 |
Merged revisions 66686 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r66686 | martin.v.loewis | 2008-09-30 00:09:07 +0200 (Di, 30 Sep 2008) | 5 lines
Issue #3965: Allow repeated calls to turtle.Screen, by making it a
true singleton object.
Reviewed by Gregor Lingl.
........
Diffstat (limited to 'Doc/library/turtle.rst')
-rw-r--r-- | Doc/library/turtle.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index 79297eb..64df742 100644 --- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -40,10 +40,10 @@ The object-oriented interface uses essentially two+two classes: :class:`ScrolledCanvas` as argument. It should be used when :mod:`turtle` is used as part of some application. - Derived from :class:`TurtleScreen` is the subclass :class:`Screen`. Screen - is implemented as sort of singleton, so there can exist only one instance of - Screen at a time. It should be used when :mod:`turtle` is used as a - standalone tool for doing graphics. + The function :func:`Screen` returns a singleton object of a + :class:`TurtleScreen` subclass. This function should be used when + :mod:`turtle` is used as a standalone tool for doing graphics. + As a singleton object, inheriting from its class is not possible. All methods of TurtleScreen/Screen also exist as functions, i.e. as part of the procedure-oriented interface. |