Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
3

Size of Turtle Canvas

How big is the canvas in the Python Turtle language?

3 years ago
Answered by mwilki7View Answer

Voters

1vincent
1vincent
EvanNelson2
EvanNelson2
IshanMittal1
IshanMittal1

Comments

TopNew
3
mwilki7
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.

3 years ago
1

@mwilki7
thank you

3 years ago
7
SherHowley
SherHowley

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

3 years ago
2
fabianbergstrom
fabianbergstrom

@SherHowley
screen.setup(width, height)

3 years ago
Load more