我正在尝试用 Python 创建一个计算器应用程序。
我正在使用 Jupyter 笔记本,这是我遇到的错误:
AttributeError: 'Calc' object has no attribute 'clear_Entry'
这是导致此错误的代码:
btnClear = Button( innerFrame, text='C', width=6, height=2, font=('arial',18,'bold'), bd=7, bg='gainsboro', command=added_value.clear_Entry)
这是clear_Entry
我定义的方法:
def clear_Entry(self): self.result=False self.current='0' self.input_value= True self.display(0)
互换的青春
相关分类