This project is a GUI-based calculator application developed using Python’s Tkinter library. It allows users to perform basic arithmetic operations through interactive buttons in a simple and attractive interface.
- Addition, subtraction, multiplication, and division
- Decimal number support
- Clear (C) button to reset input
- Backspace button to delete the last character
- Error handling for invalid expressions
- Dark-themed user interface
- Python
- Tkinter (GUI library)
- Button clicks insert numbers or operators into the display.
- The
=button evaluates the expression using Python’seval()function. - The
Cbutton clears the entire input. - The Backspace button removes the last entered character.
- Invalid expressions are handled gracefully without crashing the application.
- Ensure Python is installed on your system.
- Save the file as
calculator.py. - Open a terminal or command prompt.
- Run the following command:
python calculator.py
