title: Python Tkinter - Get value from Entry after root.destroy()
body: <p>I create entry field and after press <code>&lt;Enter&gt;</code> or submit button i call <code>root.destroy()</code>, but how i can get value from Entry after destroy? </p>
  
  <p>When i call <code>root.close()</code> i can get value from Entry if i call <code>self.EntryName.get()</code>, but how i can do it with <code>root.destroy()</code>? </p>
  
  <p><img src="https://i.stack.imgur.com/HNs1T.png" alt="enter image description here"></p>
  
  <pre><code># Python 3.4.1
  
  import io
  import requests
  import tkinter as tk
  from PIL import Image, ImageTk
  
  def get_image():
      im = requests.get('http://lorempixel.com/' + str(random.randint(300, 400)) + '/' + str(random.randint(70, 120)) + '/')
      return Image.open(io.BytesIO(im.content))
  
  
  class ImageSelect(tk.Frame):
      def __init__(self, master=None):
          tk.Frame.__init__(self, master)
  
          master.resizable(width=False, height=False)
          master.title('Image manager')
          master.iconify = False
          master.deiconify = False
          master.grab_set = True
  
          image = ImageTk.PhotoImage(get_image())
          self.image = tk.Label(image=image)
          self.image.image = image
          self.image.grid(row=0, columnspan=3)
  
  
          self.reload = tk.Button(text='Reload').grid(row=1, column=0, sticky='w')
          self.path = tk.Entry().grid(row=1, column=1, sticky='we')
          self.submit = tk.Button(text='Submit', command=self.close).grid(row=1, column=2, sticky='e')
  
      def close(self):
          self.master.destroy()
  
  if __name__ == '__main__':
      root = tk.Tk()
      app = ImageSelect(master=root)
      app.mainloop()
  
      # This code i want execute after windows destroyed. 
      # This line return this error
      # _tkinter.TclError: invalid command name ".57818448"
      # print(app.path.get()) # &lt;---- Error
  </code></pre>
  
  <p>Thanks</p>