title: python kivy generating buttons linked to jsonstore items in a for loop
body: <p>I'm using a for loop to generate a button for every key in a jsonstore.
  The buttons are all added to the layout correctly and the button.text is correct but when the button calls the callback, they all link to the same key. (the last key)</p>
  
  <p>here is the code:</p>
  
  <pre><code>def show_saved_conditions(*args,**kwargs):
  
      self.label7 = Label(text = str(self.store[self.btns.text], size_hint = (.3,.3), pos_hint = {'x':.3,'y':.5}, color = (0,0,1,1)))
      self.layout.add_widget(self.label7)
  
  def view_saved_conditions(*args, **kwargs):
  
      x = 0
      y = 0
  
      for i in self.store.keys():
  
          self.btns = (Button(text = i, size_hint = (.2,.1), pos_hint = {'x':x,'y':y}, on_release = show_saved_conditions))
          self.layout.add_widget(self.btns)
  
          x +=.2
  
          if x &gt;= 1:
              y+=.1
              x = 0
  </code></pre>
  
  <p>pretty sure this question has been asked before but i was unable to find a post specific enough for me to relate to.</p>
  
  <p>Thank you in advance...</p>