Skip to content

Commit

Permalink
Simple calculator using tikinter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronish authored and Ronish committed Apr 23, 2021
1 parent 8d138c2 commit cbb1c8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
root = Tk()

# Defining the title of the project*
root.title("Simple Ca lculator")
root.title("Simple Calculator")
root.resizable(0,0,)
e = Entry(root, width=35, font=("Times New roman", 18) , bg="skyblue", borderwidth=20)
e = Entry(root, width=35 , font=("Times New roman", 18) , bg="skyblue" , borderwidth=20)
e.grid(row=0, column=0, columnspan=10, padx=10, pady=10)


Expand Down Expand Up @@ -74,7 +74,7 @@ def button_divide():


# Defining the buttons
button_1 = Button(root, text="1", font=("Times New Roman", 20,), padx=40, pady=20, command=lambda: button_click(1))
button_1 = Button(root, text="1", font=("Times New Roman", 20,), padx=40, pady=20, command=lambda: button_click(1))
button_2 = Button(root, text="2", font=("Times New Roman", 20,), padx=40, pady=20, command=lambda: button_click(2))
button_3 = Button(root, text="3", font=("Times New Roman", 20,), padx=40, pady=20, command=lambda: button_click(3))
button_4 = Button(root, text="4", font=("Times New Roman", 20,), padx=40, pady=20, command=lambda: button_click(4))
Expand All @@ -88,7 +88,7 @@ def button_divide():
button_subtract = Button(root, text="-", font=("Times New Roman", 20,), padx=40, pady=20, command=button_subract)
button_multiply = Button(root, text="×", font=("Times New Roman", 20,), padx=39, pady=20, command=button_multiply)
button_divide = Button(root, text="÷", font=("Times New Roman", 20,), padx=39, pady=20, command=button_divide)
button_equal = Button(root, bg="skyblue ", font=("Times New Roman", 20,), text="=", padx=39, pady=20,
button_equal = Button(root, bg="skyblue", font=("Times New Roman", 20,), text="=", padx=39, pady=20,
command=button_equal)
button_clear = Button(root, text="Clear", bg="red", font=("Times New Roman", 20, ""), padx=20, pady=20,
command=button_clear)
Expand Down

0 comments on commit cbb1c8e

Please sign in to comment.