A simple GUI-based calculator built with Python and Tkinter.
Packaged into a portable executable (.exe) using PyInstaller, so it runs on Windows without requiring Python or Tkinter installed.
- Clean and minimal dark UI
- Supports basic operations:
+ - × ÷ . - Clear button (
C) and backspace (⌫) - Error handling for invalid expressions
- Portable one-file executable (no installation required)
Mega-Calculator/
│ calculator.py # main source code
│ README.md
│ LICENSE
│ CREDITS.md
│ .gitignore
│
└── assets/ # icons and resources
Calculator.ico
Calculator.png
⚠️ Thedist/folder and.exefile are not included in the repo.
You can always download the ready-to-use executable from the Releases.
- Install Python (3.9+ recommended)
- Clone this repository:
git clone https://github.com/YourUser/Mega-Calculator.git cd Mega-Calculator
3. Run the app:
```bash
python calculator.py
The portable Windows executable is available in the Releases section: 👉 Download Mega-Calculator.exe
If you want to build your own .exe:
pip install pyinstaller
pyinstaller --onefile --windowed --name Mega-Calculator ^
--icon "assets\Calculator.ico" ^
--add-data "assets\Calculator.ico;assets" ^
--add-data "assets\Calculator.png;assets" ^
calculator.pyThe executable will be generated inside the dist/ folder.
This project is licensed under the MIT License. Feel free to use, modify, and distribute.