Python 成像,调整海龟图形窗口的大小 [英] Python imaging, resize Turtle Graphics window

查看:70
本文介绍了Python 成像,调整海龟图形窗口的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的图像对于海龟窗口来说太大了.我不得不放大图像,因为我需要在每个位置的文本重叠.

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

如何在python中调整窗口大小?

How do I Resize the window in python?

推荐答案

听起来你画了一个图像,但它已经超出了窗口的边界,所以你需要把窗口放大才能看到整个图片.

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.

调整窗口大小:

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

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

这将使您的输出窗口为 200X200(这对您来说可能太小,因此您需要将这些数字放大.)

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

这是我找到此信息的 URL.TurtleDocs

Here is the URL where I found this information. TurtleDocs

这篇关于Python 成像,调整海龟图形窗口的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆