I have a list of buttons, and I did a loop to find out which button is pressed, then disable this button when pressed.
Here is the code snippet:
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)))
However, this will disable each widget, not just the button that is pressed. How can I disable only the pressed button?
thanks
user1008537
source share