for bear in self.bears:
button=tk.Button(self,text=polar.spec(),command=lambda
id=polar.spec:self.polar_ad(id))
button.grid(row=_r,column=_c,sticky=W+E+N+S)
_row+=1
Hello, so i've created a number of buttons in a for loop, but when i click the button, i want to be able to disable it. If the buttons were created individually then i could use
button["state"]="disabled"
but how can i use this by using the id of the button? Thank you