title: TKinter - User input writing into a file
body: <p>So, I'm using TKinter with Python to try and take an input from the user and write that into a seperate file for use later, but I can't seem to get it to work. Having looked over other questions and adapting some parts of my code in accordance to their answers, I still can't get it to work. </p>
  
  <p>Here's the full code:</p>
  
  <pre><code>import tkinter
  
  def write_File (text_File):
      file = open("users.txt", "a")
      user_Input = str(file)
      file.write(user_Input).get()
      text_File.insert(INSERT, file.read())
      file.close()
  
  screen = tkinter.Tk()
  
  
  the_input = tkinter.Entry(screen)
  the_input.grid(row=1, column=1)
  
  button_Write = tkinter.Button(screen, text = "Send to file:", command = lambda: write_File(the_input)).grid(row=10, column=1)
  
  screen.mainloop()
  </code></pre>
  
  <p>The Error I'm given in the console, after pressing the button, says:</p>
  
  <pre><code>    File "[file directory]", line 9, in write_File
      file.write(user_Input).get()
  AttributeError: 'int' object has no attribute 'get'
  </code></pre>
  
  <p>Anyone able to offer any assistance?</p>