title: How to display the contents from entry widget list?
body: <p>I have written a code where <code>Label</code> and <code>Entry</code> widgets' variables are put in a list (in order to avoid the number of lines which will take for creation of each <code>Label</code> and <code>Entry</code> widgets). Then a for loop to create <code>Label</code> and <code>Entry</code> widgets are used, A submit button is used which have to list the entries of each <code>Entry</code> widget. But an empty value is displayed instead of displaying the entered value. Can anyone help me to know the reason and correct the code.</p>
  
  <p>Below is the code which I have written:</p>
  
  <pre><code>from Tkinter import *
  app = Tk()
  
  list1 = ['l1','l2','l3']
  list2 = ['e1','e2','e3']
  
  entries = []
  
  r = 0
  c = 0
  for m,n in zip(list1, list2):
      x = Label(app, text=m)
      x.grid(row = r, column =c)
  
      n = StringVar()
      e = Entry(app, textvariable = n)
      e.grid(row =r , column = c+1)
  
      entries.append(e.get())
      r = r + 1
  
  
  
  def func():
      entries.append("Dfg")
      print entries
  
  s = Button(app, text = "Submit", command = func)
  s.grid(row = r, columnspan=2)
  
  app.minsize(400, 400)
  app.mainloop()
  </code></pre>
  
  <p>Please note: There could be indentation problem while posting the code, sorry for the inconvenience. </p>