This project is a desktop calculator developed using Python and the Tkinter GUI library.
It was created as a practical exercise to strengthen understanding of graphical user interface development, event-driven programming, and arithmetic logic implementation.
The application provides a structured interface and reliable handling of user input. Debugging and structural refinements were completed with AI-assisted review to improve organization and code stability.
- Addition, subtraction, multiplication, and division
- Percentage calculation
- Sign toggle (+/-)
- Clear function (AC)
- Decimal number support
- Division-by-zero handling
- Automatic formatting to remove unnecessary trailing decimals (e.g., 10.0 → 10)
- Centered and fixed-size window layout
- Language: Python 3
- GUI Framework: Tkinter
-This project demonstrates: -Implementation of a functional GUI application -Structured separation between interface and logic -Practical handling of numerical operations -Debugging and code refinement practices
Pedro Gaudencio
python calculator.py