MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / Screen

Function Screen

tools/python-3.11.9-amd64/Lib/turtle.py:3675–3681  ·  view source on GitHub ↗

Return the singleton screen object. If none exists at the moment, create a new one and return it, else return the existing one.

()

Source from the content-addressed store, hash-verified

3673### Screen - Singleton ########################
3674
3675def Screen():
3676 """Return the singleton screen object.
3677 If none exists at the moment, create a new one and return it,
3678 else return the existing one."""
3679 if Turtle._screen is None:
3680 Turtle._screen = _Screen()
3681 return Turtle._screen
3682
3683class _Screen(TurtleScreen):
3684

Callers 3

mainFunction · 0.90
mainFunction · 0.90
__init__Method · 0.70

Calls 1

_ScreenClass · 0.85

Tested by

no test coverage detected