[英]How to rename the graphics window when using turtle graphics?
I would like to provide a specific graphics window title in turtle graphics, similar to how title KJR
works in cmd.exe
.我想在海龟图形中提供一个特定的图形窗口标题,类似于title KJR
在cmd.exe
。
I am currently in the process of creating a game, and would like it to display the name, KJR
, rather than turtle graphics
.我目前正在创建一个游戏,并希望它显示名称KJR
,而不是turtle graphics
。
Is there a way this can be done?有没有办法做到这一点?
只需使用这个:
turtle.screen.title("Custom title")
使用 title("自定义标题") 函数
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.