title: Deleting and changing a tkinter event binding
body: <p>How do i stop an event from being processed or switch what function is called for it?</p>
  
  <p><strong>Revised Code:</strong></p>
  
  <pre><code>from Tkinter import *
  
  class GUI:
      def __init__(self,root):
          Window = Frame(root)
          self.DrawArea = Canvas(Window)
          self.DrawArea.pack()
          Window.pack()
  
          self.DrawArea.bind("&lt;Button 1&gt;",self.starttracking)
  
      def updatetracking(self,event):
          print event.x,event.y
  
      def finishtracking(self,event):
          self.DrawArea.bind("&lt;Button 1&gt;",self.starttracking)
          self.DrawArea.unbind("&lt;Motion&gt;")
  
      def starttracking(self,event):
          print event.x,event.y
          self.DrawArea.bind("&lt;Motion&gt;",self.updatetracking)
          self.DrawArea.bind("&lt;Button 1&gt;",self.finishtracking)
  
  
  
  if __name__ == '__main__':
      root = Tk()
      App = GUI(root)
      root.mainloop()
  </code></pre>