- Basic arithmetic: addition, subtraction, multiplication, division
- Clickable buttons and keyboard input support
- Clear (C) and Backspace (⌫) functionality
- Error handling (ex. division by zero)
- Cross-platform (Windows executable, the Python script also runs on macOS/Linux)
python main.py
Simply double-click
Calculator.exeor run:./Calculator.exe
- Click buttons or type numbers/operators on your keyboard.
- Press
=orEnterto evaluate.- Press
Cto clear all input.- Press
Backspace(⌫) to delete the last character.
Key Action 0–9 Enter digits +,-,*,/Enter operators Enter,=Evaluate expression BackspaceDelete last character C,cClear input
This executable was created using PyInstaller.
pip install pyinstaller pyinstaller --onefile --windowed --icon=icon.ico main.pyThe standalone executable will be in the
dist/folder.