I am attempting to create a calculator app in Python.
I am using a Jupyter notebook, and this is the error I run into:
AttributeError: 'Calc' object has no attribute 'clear_Entry'
And this is the code that causes this error:
btnClear = Button(
innerFrame,
text='C',
width=6,
height=2,
font=('arial',18,'bold'),
bd=7,
bg='gainsboro',
command=added_value.clear_Entry)
Here is the clear_Entry
method I defined:
def clear_Entry(self):
self.result=False
self.current='0'
self.input_value= True
self.display(0)