Python 如何在海龟模块中实现全屏显示?

Python 如何在海龟模块中实现全屏显示?,python,logic,turtle-graphics,python-turtle,Python,Logic,Turtle Graphics,Python Turtle,所以我想用python制作一个应用程序。我希望屏幕是全屏的。那我该怎么做呢 这是我的密码: import turtle wn = turtle.Screen() wn.title("Example Window") wn.setup(width=600, height=600) wn.mainloop() 如何制作全屏?以下是如何: import turtle wn = turtle.Screen() wn.title("Example Window&quo

所以我想用python制作一个应用程序。我希望屏幕是全屏的。那我该怎么做呢

这是我的密码:

import turtle

wn = turtle.Screen()
wn.title("Example Window")
wn.setup(width=600, height=600)

wn.mainloop()
如何制作全屏?

以下是如何:

import turtle

wn = turtle.Screen()
wn.title("Example Window")
wn.setup(1.0, 1.0)

wn.mainloop()
setup()
参数中,如果
width
height
为整数,则该参数将以像素为单位计算,如果为浮点,则以屏幕百分比为单位。默认大小为屏幕的50%

更多信息请参阅文档:

查看此帖子: