title: Looping over widgets in Tkinter
body: <p>here's the issue I'm thinking of:</p>
  
  <p>I have a number of similar widgets in the frame(e.g. Lables). I update them every iteration of the algorithm (using <code>root.update()</code>  in the relevant function. What I'd like to know, is how to loop through each Label. </p>
  
  <p>Of course, they were created with something like</p>
  
  <pre><code>self.var1=IntVar()
  self.lab1=Label(frame,textvariable=self.var1)
  self.lab1.grid() 
  </code></pre>
  
  <p>So each of the lables are named lab1,lab2, etc. I'm quite sure there should either be a better way of naming them, so that I don't have to call each name explicitly, or somehow loop though them.</p>