Button[i]=Tkinter.Button(frame, width=4, height=1, text=str(i), command=lambda:callback(i)) We can not use callback(i) in this sentence , We can use only callback(1 ...