title: Get the same input multiple times in python tkinter?
body: <p>I am making a program to get multiple user names and store them in a XML file. The XML part works fine, but I am having trouble with the GUI. I want to be able to ask the user how many users he wants to input, then repeat an <code>Entry</code> that number of times. How can I do that, while maintaining a <code>quit</code> function? I tried: </p>
  
  <pre><code>    def quitter():
          exit()
          quit()
  
      quitterButton = Button(master, text="Quit", command=quitter)
      mainCanvas.create_window(50, 330, window=quitterButton, tag="quitter")
      num = int(raw_input("How many users are you going to put in?"))
      for x in range(0,num):
  
          #Create User entry Variable
          userEnter = StringVar()
          usrVar = ""
          #Create enter box:
          userEntryBox = Entry(master, textvariable = userEnter)
          mainCanvas.create_window(250, 300, window=userEntryBox, tag="UserEnterA")
  
          def gotInput(self):
              usrVar = userEnter.get();
              mainCanvas.create_text(250, 330, text="User Inputted: " + usrVar, tags="0")
              mainCanvas.delete("UserEnterA")
  
          #Bind entry box
          userEntryBox.bind('&lt;Key-Return&gt;', gotInput)
          userEntryBox.wait_window(userEntryBox)
  
          #Create a new user element 
          newUsr= ET.Element('Member')
  
          #Add element to the Root
          root.append(newUsr)
  
          #Make a sub element Name, set name
          usrName = ET.SubElement(newUsr, 'Name')
          usrName.text = usrVar;
          ...
      tree.write('./output.xml')
  </code></pre>
  
  <p>What is the best way to go around it? I won't know the number of inputs, and I want the quit button to work at all times .</p>