用法:
turtle.bgpic(picname=None)
picname- 一个字符串,gif-file 的名称或
"nopic"
, 或者None
参数:
设置背景图片或返回当前背景图片的名称。如果
picname
是文件名,则将相应的图像设置为背景。如果picname
是"nopic"
,则删除背景图像(如果存在)。如果picname
是None
,则返回当前背景图像的文件名。>>> screen.bgpic() 'nopic' >>> screen.bgpic("landscape.gif") >>> screen.bgpic() "landscape.gif"
相关用法
- Python turtle.bgpic()用法及代码示例
- Python turtle.bgcolor用法及代码示例
- Python turtle.backward()用法及代码示例
- Python turtle.back用法及代码示例
- Python turtle.begin_fill()用法及代码示例
- Python turtle.bye()用法及代码示例
- Python turtle.write_docstringdict()用法及代码示例
- Python turtle.reset用法及代码示例
- 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 turtle.up()用法及代码示例
- Python turtle.tilt()用法及代码示例
注:本文由纯净天空筛选整理自python.org大神的英文原创作品 turtle.bgpic。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。