为什么"按钮"不行?

时间:2017-08-23 13:18:34

标签: python

btnTotal = Button(RightMidFrame, font=('arial',12,'bold'), text ="Total", bd =6, width=15, command = Product) 
btnTotal(row=10,column=0) 
lblExit = Button(RightMidFrame, font=('arial',12,'bold'), text ="Exit", bd = 6, width=15, command = iExit) 
lblExit.grid(row=10,column=1) lblReset = Button(RightMidFrame, font=('arial',12,'bold'), text ="Reset", bd = 6, width=15, command = Reset) 
lblReset.grid(row=10,column=2)

以下是错误:

btnTotal(row=10,column=0)

TypeError: 'Button' object is not callable

0 个答案:

没有答案