A clean, intuitive calculator built with Python and Tkinter. It supports basic arithmetic and essential functions like square and square root β perfect for everyday use or as a lightweight replacement for your system's default calculator.
- β Addition, β Subtraction, βοΈ Multiplication, β Division
- π° Square and square root functions
- π¨ Simple, user-friendly GUI
- β¨οΈ Keyboard and mouse input support
- πΌοΈ Customizable layout and styling
- Python 3.7 or higher
- Tkinter (usually included with Python)
- Clone the repository:
git clone https://github.com/Paddywelch117/Calculator-App
- Navigate to the project folder:
cd Calculator-App - Run the calculator:
python Calculator.py
You can replace your system's default calculator with Calculator.py using the steps below.
-
Create a shortcut:
- Right-click
Calculator.pyβ Send to β Desktop (create shortcut) - Rename the shortcut to Calculator
- Right-click
-
Change default app:
- Go to Settings β Apps β Default apps
- Scroll to Calculator and click it
- Choose Look for an app on this PC
- Browse to your Python executable (e.g.,
C:\Python39\python.exe) - Select it and confirm
-
Associate
.pyfiles with Python (if needed):- Right-click any
.pyfile β Open with β Choose another app β Select Python - Check Always use this app
- Right-click any
-
Create an Automator app:
- Open Automator β New Document β Choose Application
- Add a Run Shell Script action with:
python3 /path/to/Calculator.py
- Save as Calculator.app
-
Replace default shortcut:
- Rename the Automator app to Calculator
- Move it to
/Applications - Remove the default Calculator from the Dock and add your version
-
Create a desktop entry:
- Create a file named
calculator.desktopin~/.local/share/applications/:[Desktop Entry] Name=Calculator Exec=python3 /path/to/Calculator.py Icon=accessories-calculator Type=Application Categories=Utility;
- Create a file named
-
Set as default:
- Use
xdg-mimeto associate calculator MIME types:xdg-mime default calculator.desktop application/x-calculator
- Use
Created by Patrick Welch β pragmatic, detail-oriented, and passionate about clarity, optimization, and sharing knowledge through clean technical design.
Feel free to fork, improve, or suggest features via pull requests or issues. Letβs make this calculator even better together!
Current Version: 1.0.0
Status: Stable release
- Add calculation history
- Support scientific functions (trigonometry, logarithms)
- Theme customization
- Export results to text or CSV
