I am using 20 buttons and the when click any one of the button i am calling a "btn_click" function.Is it possible to know the Button name(which button pressed)through that function.Please Find the code snippet below.
t=['one','two','three','four','five','six','seven','untill to twenty']
for i in range(1,20):
obj=Button(root1,text=t[i],command=btn_click,width=27)
obj.grid(row=i,column=0,sticky=W,padx=15,pady=15)