diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2008-09-29 22:09:07 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2008-09-29 22:09:07 (GMT) |
commit | e563aa4383df36cefe5c85c2a85b9008f54df048 (patch) | |
tree | 865ead147f288507d8963abce4a5f310c705cab5 /Doc/library/turtle.rst | |
parent | e1448730716ee5c62d7290f8cfb4d94ad3f440df (diff) | |
download | cpython-e563aa4383df36cefe5c85c2a85b9008f54df048.zip cpython-e563aa4383df36cefe5c85c2a85b9008f54df048.tar.gz cpython-e563aa4383df36cefe5c85c2a85b9008f54df048.tar.bz2 |
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 67064d1..5f9bf18 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. |