turtle.left(90)
turtle.forward(100)
turtle.write(f"Hits: {clicks}")
def clicked(x, y):
global clicks
clicks +=1
turtle.clear()
turtle.write(f"Hits: {clicks}", align="center", font=("Comic Sans", 32, "normal"))
idiot.onclick(clicked)
wn.mainloop()
this is the code i improvisd from last time, i learned that i was repeating unneeded lines of code and basically was adding the wrong strings of code in the wrong lines making the clicker not work and the text to not draw/appear, i fixed it by renaming the commands to the thing i defined it as earlier
Leave a Reply