On this page
turtle.Screen
Prev: turtle.right | Up: turtle | Next: turtle.Turtle
Rel: turtle.backward, turtle.forward, turtle.left, turtle.pendown
Ref: docs.python.org — turtle.Screen
Tags: #public #python3 #stdlib #turtle
Import
import turtle
from turtle import Screen
Signature & Overview
turtle.class Screen()
Return the singleton TurtleScreen object.
Methods & Attributes
Screen.bgcolor(...)—Screen.bgcolormethod.Screen.title(...)—Screen.titlemethod.Screen.setup(...)—Screen.setupmethod.Screen.mainloop(...)—Screen.mainloopmethod.Screen.exitonclick(...)—Screen.exitonclickmethod.
Usage
import turtle
# Returns the singleton Tkinter drawing canvas (requires a GUI display)
assert callable(turtle.Screen)
Gotchas
- Call
screen.tracer(0)+screen.update()to render complex fractals instantaneously.
REPL Inspect
from turtle import Screen
help(Screen)
Linked from
Related notes
- tuts/python3/stdlib_module/turtle/right Linked here; links to this page; shared tags: #stdlib, #turtle
- tuts/python3/stdlib_module/turtle/Turtle Linked here; links to this page; shared tags: #stdlib, #turtle
- tuts/python3/stdlib_module/turtle/backward Linked here; shared tags: #stdlib, #turtle
- tuts/python3/stdlib_module/turtle/forward Linked here; shared tags: #stdlib, #turtle
- tuts/python3/stdlib_module/turtle/left Linked here; shared tags: #stdlib, #turtle
- tuts/python3/stdlib_module/turtle/pendown Linked here; shared tags: #stdlib, #turtle
- tuts/python3/stdlib_module/turtle links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/turtle/penup shared tags: #stdlib, #turtle
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib