This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
# Create a function to handle button click events | |
def on_button_click(event): | |
current_text = result_label["text"] | |
button_text = event.widget["text"] | |
if button_text == "=": | |
try: |