title: How to move a Canvas image using Tkinter?
body: <p>Guys I am working on a code which needs to move an image in python using Tkinter(canvas)
  This is creating problems for me. The image is being displayed but it is not moving.</p>
  
  <pre><code>from Tkinter import *
  root = Tk()
  root.title("Click me!")
  def next_image(event):
      global toggle_flag
      global x, y, photo1
      # display photo2, move to right, y stays same
      canvas1.create_image(x+10, y, image=photo1)
      canvas1.create_image(x+20, y, image=photo1)           
      canvas1.create_image(x+30, y, image=photo1)
      canvas1.create_image(x+40, y, image=photo1)
      canvas1.create_image(x+50, y, image=photo1)
      canvas1.create_image(x+60, y, image=photo1)
      canvas1.create_image(x+70, y, image=photo1)
      canvas1.create_image(x+100, y, image=photo1)
  
  image1 = "C:\Python26\Lib\site-packages\pygame\examples\data\ADN_animation.gif"   #use some random gif
  photo1 = PhotoImage(file=image1)
  # make canvas the size of image1/photo1
  width1 = photo1.width()
  height1 = photo1.height()
  canvas1 = Canvas(width=width1, height=height1)
  canvas1.pack()
  # display photo1, x, y is center (anchor=CENTER is default)
  x = (width1)/2.0
  y = (height1)/2.0
  canvas1.create_image(x, y, image=photo1)
  canvas1.bind('&lt;Button-1&gt;', next_image)  # bind left mouse click
  root.mainloop() 
  </code></pre>