Today, I watched this video and made a calculator.
def show(self, value):
self.entry_value += str(value)
self.equation.set(self.entry_value)
^ This is called whenever a button on the calculator is pressed. It takes a button’s value, adds it to a string, then updates the display with a new string. That’s how the numbers and operators appear as you type.
This project taught me how to open a window in Tkinter.

Leave a Reply