Sep-23-2021, 05:57 PM
(This post was last modified: Sep-23-2021, 06:38 PM by Underscore.)
I am having issues with the module turtle
And i have no idea how to fix it because of the very unspecific error.
My code:
And i have no idea how to fix it because of the very unspecific error.
My code:
import turtle
win = turtle.Screen()
win.title("Chocolate Clicker (totally not inspired by cookie clicker)")
win.register_shape("choco.gif", shape=(0, 0))
chocolate = turtle.Turtle()
chocolate.shape("choco.gif")
clicks = 0
clicks_gui = turtle.Turtle(); clicks_gui.hideturtle(); clicks_gui.write(clicks)
turtle.mainloop()Error:Error:Traceback (most recent call last):
File "/storage/emulated/0/Android/chocolate clicker/main.py", line 8, in <module>
chocolate.shape("choco.gif")
File "/data/data/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.8/turtle.py", line 2778, in shape
self._update()
File "/data/data/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.8/turtle.py", line 2661, in _update
self._drawturtle()
File "/data/data/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.8/turtle.py", line 3008, in _drawturtle
shape = self._polytrafo(self._getshapepoly(tshape))
File "/data/data/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.8/turtle.py", line 2961, in _polytrafo
return [(p0+(e1*x+e0*y)/screen.xscale, p1+(-e0*x+e1*y)/screen.yscale)
File "/data/data/ru.iiec.pydroid3/files/arm-linux-androideabi/lib/python3.8/turtle.py", line 2961, in <listcomp>
return [(p0+(e1*x+e0*y)/screen.xscale, p1+(-e0*x+e1*y)/screen.yscale)
TypeError: cannot unpack non-iterable int object
666+666*666/666-666
