A Python project built with Tkinter for practicing GUI development.
This calculator supports both basic and advanced operations, with a history window and a simple resizable interface.
- Basic operations:
+
,-
,*
,/
- Decimal input & backspace support
- Advanced functions:
- Trigonometry:
sin
,cos
,tan
- Logarithms:
log
,log10
- Square root, square (
a²
)
- Trigonometry:
- Expression evaluation using Python’s
eval()
- History window for last 5 results
- Expandable/advanced mode (resizes UI for extra functions)
- Error handling (e.g., invalid input)
- Make sure you have Python 3.x installed.
- Run the script with:
python calculator.py
This project was created to:
Practice Tkinter GUI layout
Work with event handling (button callbacks)
Explore math functions in Python
Learn how to manage state and history in GUI apps
Better input validation (reduce reliance on eval)
Cleaner UI layout with grid/pack
Save history between sessions
Dark/light mode toggle
Optimized code structure (OOP)
This project is open source and available under the MIT License.