How to change size of turtle?

后端 未结 2 1171
鱼传尺愫
鱼传尺愫 2020-12-12 07:46

I am trying to double the size of the turtle in the window every time I press x on my keyboard. I tried using .turtlesize(2,2,2), but that\'s not r

2条回答
  •  旧时难觅i
    2020-12-12 08:16

    Change this line:

    tess.turtlesize(increase)
    

    to instead be:

    tess.turtlesize(*increase)
    

    turtlesize() wants three separate values but you were passing one tuple of three values so we need to spread that tuple across the argument list.

提交回复
热议问题