Skip to content
Sign upLog in
← Back to Community

Size of Turtle Canvas

Profile icon
[deleted]

How big is the canvas in the Python Turtle language?

Answered by mwilki7 [earned 5 cycles]
View Answer
Voters
Profile icon
1vincent
Profile icon
EvanNelson2
Profile icon
IshanMittal1
Comments
hotnewtop
Profile icon
mwilki7

From what I remember it is configurable. So you can set it to whatever size you want.

>>> screen.screensize() (400, 300) >>> screen.screensize(2000,1500) >>> screen.screensize() (2000, 1500)

https://docs.python.org/3.3/library/turtle.html?highlight=turtle#turtle.screensize

As for the default value, according to the docs,
turtle.screensize(canvwidth=None, canvheight=None, bg=None)
it looks like the canvas will have no size if you do not set it.

Profile icon
[deleted]

@mwilki7
thank you

Profile icon
SherHowley

i keep getting no attribute called screensize when I use this in repl!!

Profile icon
fabianbergstrom

@SherHowley
screen.setup(width, height)