title: How to add a new entry box when clicking a button (Python, Tkinter)
body: <p>Hi i want to add a new entry box when clicking a button. How can i do that ?
  What've done is im able to &quot;for loop&quot; a group of entry boxes. But i want the entry boxes to appear one by one by clicking a button.</p>
  <p><strong>What've done</strong></p>
  <p><a href="https://i.stack.imgur.com/7ECD9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7ECD9.png" alt="enter image description here" /></a></p>
  <p><strong>My code:</strong></p>
  <pre><code>import tkinter as tk
  from tkinter import *
  
  root = Tk()
  root.title(&quot;Entry box&quot;)
  root.geometry(&quot;700x500&quot;)
  
  my_entries = []
  
  def something():
  
      entry_list = ''
      for entries in my_entries:
          entry_list = entry_list + str(entries.get()) + '\n'
          my_label.config(text=entry_list)
      print(my_entries[0].get())
  
  for x in range(5):
      my_entry = Entry(root)
      my_entry.grid(row=0, column=x, pady=20, padx=5)
      my_entries.append(my_entry)
  
  my_button = Button(root, text=&quot;Click Me!&quot;, command=something)
  my_button.grid(row=1, column=0, pady=20)
  
  
  </code></pre>