title: AttributeError: 'str' object has no attribute 'insert'
body: <p>I'm quite a new programmer and I would be appreciated if you could help me. I have looked on the google but there are a few examples with "Twisted+Tkinter". When i click "Send" button on the window i get this error:</p>
  
  <p>The error is 
  e.insert(0,m)
  AttributeError: 'str' object has no attribute 'insert'</p>
  
  <p>And the code:</p>
  
  <pre><code>from Tkinter import *
  from twisted.internet import reactor, tksupport
  
  class App(object):
      def onQuit(self):
          print "Quit!"
          reactor.stop()
  
      def onButton(self):
          m=self.entryvar.get()
          e=self.labeltext.get()
          e.insert(0,m)
  
  def __init__(self, master):
      frame = Frame(master)
      frame.pack()
  
      self.entryvar=StringVar()
      self.mes=Entry(frame,textvariable=self.entryvar)
      self.mes.pack()
  
      self.labeltext=StringVar()
      self.label=Label(frame,textvariable=self.labeltext)
      self.label.pack()
  
      q = Button(frame, text="Quit!", command=self.onQuit)
      b = Button(frame, text="Send", command=self.onButton)
      q.pack(side=LEFT)
      b.pack(side=LEFT)
  
  if __name__ == '__main__':
      root = Tk()
      tksupport.install(root)
      app = App(root)
      reactor.run()
  </code></pre>