I designed an arc which can rotate, but I can't figure out why IDLE tells me there is still an error in my code.
Here is my code:
from Tkinter import*
from math import *
from time import sleep
pai=Tk()
cv=Canvas(pai,width=1100,height=631,bg="white")
cv.pack()
bb=(150,110,550,510)
temp1=0
temp2=24
t=0
arc1=cv.create_arc(bb,start=temp1,extent=temp2,fill="yellow")
while True:
t=0.51
temp1+=t
cv.itemconfig(arc1,start=temp1)
cv.update()
And this is the results:
Traceback (most recent call last):
File "C:\Users\amazi\Desktop\作业\s.py", line 15, in <module>
cv.itemconfig(arc1,start=temp1)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 2408, in itemconfigure
return self._configure(('itemconfigure', tagOrId), cnf, kw)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1321, in _configure
self.tk.call(_flatten((self._w, cmd)) + self._options(cnf))
TclError: invalid command name ".93591304L"