Turtle python resizing
I want to change the size of my turtles in python, but can't seem to figure it out. I've tried " turtle.resizemode("user") " which returns an error, along with "t.shapesize(2,2)" and " t.turtlesize(2,2)" with t = turtle, but I just keep getting the error "AttributeError: '<invalid type>' object has no attribute 'turtlesize' on line 40" or similar. If any of you know what I am missing, please fill me in. Thanks!
So, repl.it uses an open source technology called Skulpt to run Python code in a browser.
It seems repl.it communicates with Skupt through an API. I found the Turtle API documentation here:
If you look through the API documentation you will see that the turtle.shape method is included, but some of the other sizing methods like turtle.resizemode & turtle.shapesize are not included in the documentation. This is why we could change the shape and it wouldn't give us an error but it would for the other methods.
So, this seems to be a lack of functionality in the API. Skulpt being open source, I guess we could add it if we had the ambition!
Using python with pygame (instead of python with turtle) seems to solve the issue. So if you put the same turtle code that works on a regular IDE into python with pygame, there are no longer any issues with shapesize and resizemode.