I have this code, which moves one of the two Tkinter Canvas
objects. How do I make it move both at the same time using canvas.move()
?
canvas.create_oval(100, 105, 150, 150, fill = 'light blue', outline = 'green')
canvas.create_oval(200, 205, 150, 150, fill = 'light blue', outline = 'green')
tkinter.update()
for x in range (1, 100):
canvas.move(1, 5, 0)
tkinter.update()
time.sleep(0.05)