MCPcopy Index your code
hub / github.com/python/cpython / Screen

Function Screen

Lib/turtle.py:3809–3815  ·  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

3807### Screen - Singleton ########################
3808
3809def Screen():
3810 """Return the singleton screen object.
3811 If none exists at the moment, create a new one and return it,
3812 else return the existing one."""
3813 if Turtle._screen is None:
3814 Turtle._screen = _Screen()
3815 return Turtle._screen
3816
3817class _Screen(TurtleScreen):
3818

Callers 4

mainFunction · 0.90
mainFunction · 0.90
__init__Method · 0.85
mainFunction · 0.85

Calls 1

_ScreenClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…