用法:
turtle.resizemode(rmode=None)
rmode- 字符串之一“auto”, “user”, “noresize”
參數:
將 resizemode 設置為以下值之一:“auto”, “user”, “noresize”。如果沒有給出
rmode
,則返回當前的resizemode。不同的resizemodes有以下效果:- “auto”:根據pensize的值調整 turtle 的外觀。
- “user”:根據
shapesize()
設置的stretchfactor和outlinewidth(輪廓)的值調整 turtle 的外觀。 - “noresize”: turtle 的外觀沒有適應。
resizemode("user")
在與參數一起使用時由shapesize()
調用。>>> turtle.resizemode() 'noresize' >>> turtle.resizemode("auto") >>> turtle.resizemode() 'auto'
相關用法
- Python turtle.resizemode()用法及代碼示例
- Python turtle.reset用法及代碼示例
- Python turtle.reset()用法及代碼示例
- Python turtle.resetscreen()用法及代碼示例
- Python turtle.register_shape()用法及代碼示例
- Python turtle.radians用法及代碼示例
- Python turtle.right()用法及代碼示例
- Python turtle.radians()用法及代碼示例
- Python turtle.right用法及代碼示例
- Python turtle.write_docstringdict()用法及代碼示例
- Python turtle.delay()用法及代碼示例
- Python turtle.write()用法及代碼示例
- Python turtle.getpen()用法及代碼示例
- Python turtle.isvisible用法及代碼示例
- Python turtle.onkey用法及代碼示例
- Python turtle.tracer用法及代碼示例
- Python turtle.end_fill()用法及代碼示例
- Python turtle.undo用法及代碼示例
- Python turtle.onscreenclick()用法及代碼示例
- Python turtle.speed()用法及代碼示例
注:本文由純淨天空篩選整理自python.org大神的英文原創作品 turtle.resizemode。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。