title: Python Tkinter: Why is widget.bind() not working?
body: <p>I am trying to make a Python Tkinter program display a circle and move the circle right when I press Return/Enter. My code is currently:</p>
  
  <pre><code>from Tkinter import *
  class GUI(Frame):
      def __init__(self, master=None):
          Frame.__init__(self, master)
          self.pack()
          self.setupStuff()
      def setupStuff(self):
          self.canvas = Canvas(self, height=500, width=600)
          self.canvas.pack()
          self.blueCircle = self.canvas.create_oval(10, 10, 40, 40, fill='dodger blue')
          self.canvas.bind('&lt;Return&gt;', self.moveRight)
      def moveRight(self):
          print 'Yo',
          self.canvas.move(self.blueCircle, 1, 0)
          print 'yo'
  if __name__ == '__main__':
      window = GUI(Tk())
      window.mainloop()
  </code></pre>
  
  <p>My problem is that the ball doesn't move when I press Return/Enter.</p>