title: Need to track variables from multiple Tkinter checkboxes
body: <p>I have a dynamically created Tkinter checkbutton widget, which takes in the contents of a list of usernames. I then displayed those names with a checkbox alongside.</p>
  
  <p>What I need to do is obviously collect which usernames have been checked, so I can pass that off to another function to action.</p>
  
  <p>How should I write the variable part of this so it creates a new list of chosen usernames?</p>
  
  <p>What I have thus far:</p>
  
  <pre><code>def delprof_results(users_delprof):
  
      for i in range(len(users_delprof)):
          c = Checkbutton(resultsFrame, text=users_delprof[i], variable=users_delprof[i])
          c.pack(anchor=W)
  
      def delprof_del():
          users_chosen = []
          print str(users_delprof[i]).get() # Works up until this point. How to get individual variable with ID.
  
      del_but = Button(resultsFrame, text="Delete", width=7, height=1, command=delprof_del)
      del_but.pack(side=LEFT)
  </code></pre>
  
  <p>Thanks in advance,
  Chris.</p>