title: wxPython, Disabling buttons?
body: <p>I have a list of buttons and I have made a loop to find out what button is pressed, then disable that button on click.</p>
  
  <p>Here is the snippet of code:</p>
  
  <pre><code>    def change(self,event):
          self.Disable()
  
  
      for i in enumerate(file_pool):
          self.button_pool.append(wx.Button(self.sizer, -1, i[1], pos=(20, i[0]*45),size=(200,40))) #this would create the list of buttons
      for i in self.button_pool:
          i.Bind(wx.EVT_BUTTON, self.change) #bind each button
  </code></pre>
  
  <p>However, this will Disable every widget, not just the pressed button. How can I only disable the clicked button?</p>
  
  <p>Thanks</p>