title: How to save entry field values to disk in Tkinter?
body: <p>I have an intrepid young friend who asked me to write a script that could create configuration (text) files for a science program he needs, and asked if I could hack together a GUI in Python that would simplify the process.  I've been able to piece together a bit of it that would provide him a GUI to enter in a few of the values he needs, but am not quite sure how to save these values via Tkinter.  Can any of you give me any suggestions on possible solutions?</p>
  
  <p>Here's the code I've got so far:</p>
  
  <pre><code>import Tkinter
  from tkFileDialog import *
  
  window = Tkinter.Tk()
  window.title('File Generator for Adam!')
  
  # create file menu
  
  
  # create a label widget called lbl
  lbl = Tkinter.Label(window, text="Enter the imin value for Min")
  # create matching text entry widget called ent
  ent = Tkinter.Entry(window)
  
  lbl2 = Tkinter.Label(window, text="Enter the ntx value for Min")
  ent2 = Tkinter.Entry(window)
  
  # pack (add) widgets to window
  lbl.pack()
  ent.pack()
  lbl2.pack()
  ent2.pack()
  window.mainloop()
  </code></pre>