Business Client need Software Development
Contact person: Business Client
Phone:Show
Email:Show
Location: Tirupati, India
Budget: Recommended by industry experts
Time to start: As soon as possible
Project description:
"import tkinter as tk
# Create main window
root = [login to view URL]()
[login to view URL]("Simple Calculator")
[login to view URL]("300x400")
[login to view URL](False, False)
# Entry widget to display the expression
expression = ""
def press(num):
global expression
expression += str(num)
[login to view URL](expression)
def clear():
global expression
expression = ""
[login to view URL]("")
def equalpress():
try:
global expression
total = str(eval(expression)) # Evaluate the math expression
[login to view URL](total)
expression = total
except:
[login to view URL]("Error")
expression = ""
# StringVar() to update entry box dynamically
equation = [login to view URL]()
# Entry field
entry_field = [login to view URL](root, textvariable=equation, font=('Arial', 20), bd=10, insertwidth=2, width=14, borderwidth=4, relief="ridge", justify='right')
[login to view URL](row=0, column=0, columnspan=4, pady=10)
# Button layout
buttons = [
('7',1,0), ('8',1,1), ('9',1,2), ('/',1,3),
('4',2,0), ('5',2,1), ('6',2,2), ('*',2,3),
('1',3,0), ('2',3,1), ('3',3,2), ('-',3,3),
('0',4,0), ('.',4,1), ('+',4,2), ('=',4,3)
]
# Create buttons dynamically
for (text, row, col) in buttons:
if text == '=':
[login to view URL](root, text=text, padx=20, pady=20, bg="lightgreen", command=equalpress).grid(row=row, column=col, padx=5, pady=5)
else:
[login to view URL](root, text=text, padx=20, pady=20, command=lambda t=text: press(t)).grid(row=row, column=col, padx=5, pady=5)
# Clear button
[login to view URL](root, text='C', padx=20, pady=20, bg="lightcoral", command=clear).grid(row=5, column=0, columnspan=4, sticky="we", padx=5, pady=5)
# Start the main loop
[login to view URL]()" (client-provided description)
Matched companies (5)

WhizzAct Private Limited

Versasia Infosoft

SYNERGIC SOFTEK SOLUTIONS PVT LTD

TG Coders
