title: Animating an object to move in a circular path in Tkinter
body: <p>I am trying to model a simple solar system in Tkinter using circles and moving them around in canvas. However, I am stuck trying to find a way to animate them. I looked around and found the <code>move</code>function coupled with <code>after</code> to create an animation loop. I tried fidgeting with the parameters to vary the <code>y</code> offset and create movement in a curved path, but I failed while trying to do this recursively or with a <code>while</code> loop. Here is the code I have so far:</p>
  
  <pre><code>import tkinter
  
  class celestial:
      def __init__(self, x0, y0, x1, y1):
          self.x0 = x0
          self.y0 = y0
          self.x1 = x1
          self.y1 = y1
  
  sol_obj = celestial(200, 250, 250, 200)
  sx0 = getattr(sol_obj, 'x0')
  sy0 = getattr(sol_obj, 'y0')
  sx1 = getattr(sol_obj, 'x1')
  sy1 = getattr(sol_obj, 'y1')
  coord_sol = sx0, sy0, sx1, sy1
  
  top = tkinter.Tk()
  
  c = tkinter.Canvas(top, bg='black', height=500, width=500)
  c.pack()
  
  sol = c.create_oval(coord_sol, fill='black', outline='white')
  
  top.mainloop()
  </code></pre>