title: Missing argument error for .get method of tkinter text entry widget
body: <p>I am attempting to run the following code for a text editor.</p>
  
  <pre><code>def newfile():
  current = None
  def create_file(entry):
      nonlocal current
      current = open(entry.get(),'w')
      e.master.destroy()
  chdir(askdirectory())
  name=Tk()
  name.title("Name the File?")
  prompt=Label(name, text="Enter name for new file:")
  prompt.grid(row=0)
  e=Entry(name)
  e.grid(row=1)
  e.insert(0, "Untitled")
  create=Button(name, text="Create", command = lambda: create_file(e))
  create.grid(row=2, column=3)
  name.mainloop()
  return current
  </code></pre>
  
  <p>But I get this error:</p>
  
  <pre><code>Exception in Tkinter callback
  Traceback (most recent call last):
    File "/usr/lib/python3.2/tkinter/__init__.py", line 1402, in __call__
      return self.func(*args)
    File "&lt;pyshell#1&gt;", line 15, in &lt;lambda&gt;
      create=Button(name, text="Create", command = lambda: create_file(e))
    File "&lt;pyshell#1&gt;", line 5, in create_file
      current = open(entry.get(),'w')
  TypeError: an integer is required
  </code></pre>
  
  <p>It wants an integer argument.
  Does anyone know what that is?</p>