Skip to content

Instantly share code, notes, and snippets.

View Jorabekasqarov's full-sized avatar

Jorabek Jorabekasqarov

View GitHub Profile
@Jorabekasqarov
Jorabekasqarov / main.py
Created July 23, 2023 13:03
Calculator
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: