title: Typing Text into the Tkinter Canvas Widget
body: <p>I need to allow the users to type text into the Canvas Widget, making the canvas update as the user types new text.</p>
  
  <p>Here's what I have tried so far, but am not getting it to work.</p>
  
  <p>First I have a <code>mouseDown</code> method which is bound to Button-1 event</p>
  
  <pre><code>widget.bind(self.canvas, "&lt;Button-1&gt;", self.mouseDown)
  </code></pre>
  
  <p>This <code>mouseDown</code> method returns the <code>startx, starty</code> positions to my method <code>drawText</code></p>
  
  <pre><code>def drawText(self, x, y, fg):
      self.currentObject = self.canvas.create_text(x,y,fill=fg,text=self.typedtext)
  </code></pre>
  
  <p>I also have a global binding on the canvas widget to capture any key press like this:</p>
  
  <pre><code>Widget.bind(self.canvas, "&lt;Any KeyPress&gt;", self.currentTypedText)
  
  def currentTypedText(self, event):
      self.typedtext = str(event.keysym)
      self.drawText(self, self.startx, self.starty,self.foreground)
  </code></pre>
  
  <p>However there's no error and nothing gets printed on the canvas.</p>