如何在不按全屏按钮的情况下全屏显示乌龟 Window?

How to fullscreen a turtle Window without pressing the fullscreen button?

我用 python 创建了一个乌龟 window,但我无法让它在程序首次运行时自动进入全屏。怎么做? wn.fullScreen()?感谢您的帮助!

import turtle

wn=turtle.Screen()
wn.bgcolor("blue")

#wn.fullScreen() ?
import turtle
wn=turtle.Screen()
wn.bgcolor("blue")
wn.setup(width = 1.0, height = 1.0, startx=None, starty=None)

width – 如果是整数,则为像素大小,如果是浮点数,则为屏幕的一小部分;默认为屏幕的 50%

height – 如果是整数,则为以像素为单位的高度,如果是浮点数,则为屏幕的一小部分;默认为屏幕的 75%

startx – 如果为正,则从屏幕左边缘开始以像素为单位的位置,如果为负,则从右边缘开始,如果 None,水平居中 window

starty – 如果为正,则从屏幕上边缘开始以像素为单位的位置,如果为负,则从底部边缘开始,如果 None,则垂直居中 window