Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Bug report
Double nested arrays in tk.coords will produce errors in tkinter (_tkinter.TclError: wrong # coordinates: expected at least 4, got 2 in this case)
importtkinterastkcoords= [[100,100], [300,300]]root=tk.Tk()canvas=tk.Canvas(width=400,height=400,background="bisque")canvas.pack(fill="both",expand=True)line=canvas.create_line(coords)coords[1]= [200,200]canvas.coords(line,coords)# line with errorroot.mainloop()
Your environment
- CPython versions tested on: 3.10.4
- Operating system: Windows 10