I made a turtle drawing program in python, but my canvas in which the turtle draws is not big enough. I am trying to make this canvas bigger so that I can fit more on the page and make the stuff bigger. I am programming this in trinket.io.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
That is your problem -- Unfortunately, this is not possible in trinket.io.
Trinket.io does not support all the
turtle
methods. You can read which ones are supported here; I assume the rest are unsupported.This will work on your local python interpreter:
But this will fail in Trinket.io, with a message like:
The documentation implies that
turtle.setup()
is supported, however, it seems not to be, because this will work on your local python interpreter and fail in trinket.io.The only thing I have been able to do in trinket.io is to be able to return (not set) the dimensions, via: