Python imaging, resize Turtle Graphics window

风流意气都作罢 提交于 2019-12-18 08:49:00

问题


My image is too large for the turtle window. I had to enlarge the image because the text I need at each spot overlaps.

How do I Resize the window in python?


回答1:


It sounds like you have drawn an image, but it has gone outside the borders of the window, so therefore you need to make the window larger to see the entire image.

To resize the window:

setup( width = 200, height = 200, startx = None, starty = None)

This will make your output window 200X200 (which may be too small for you so you'll need to make those numbers larger.)

Here is the URL where I found this information. TurtleDocs



来源:https://stackoverflow.com/questions/831894/python-imaging-resize-turtle-graphics-window

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!