Skip to content

Paddywelch117/Calculator-App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

14 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Calculator.py

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.


Features

  • βž• Addition, βž– Subtraction, βœ–οΈ Multiplication, βž— Division
  • 🟰 Square and square root functions
  • 🎨 Simple, user-friendly GUI
  • ⌨️ Keyboard and mouse input support
  • πŸ–ΌοΈ Customizable layout and styling

πŸ“¦ Installation

Requirements

  • Python 3.7 or higher
  • Tkinter (usually included with Python)

Steps

  1. Clone the repository:
    git clone https://github.com/Paddywelch117/Calculator-App
    
  2. Navigate to the project folder:
    cd Calculator-App
    
  3. Run the calculator:
    python Calculator.py
    

Preview

Calculator Screenshot


πŸ–₯️ Set as Default Calculator App

You can replace your system's default calculator with Calculator.py using the steps below.

πŸ”Ή Windows

  1. Create a shortcut:

    • Right-click Calculator.py β†’ Send to β†’ Desktop (create shortcut)
    • Rename the shortcut to Calculator
  2. 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
  3. Associate .py files with Python (if needed):

    • Right-click any .py file β†’ Open with β†’ Choose another app β†’ Select Python
    • Check Always use this app

πŸ”Ή macOS

  1. 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
  2. Replace default shortcut:

    • Rename the Automator app to Calculator
    • Move it to /Applications
    • Remove the default Calculator from the Dock and add your version

πŸ”Ή Linux (Ubuntu/Debian)

  1. Create a desktop entry:

    • Create a file named calculator.desktop in ~/.local/share/applications/:
      [Desktop Entry]
      Name=Calculator
      Exec=python3 /path/to/Calculator.py
      Icon=accessories-calculator
      Type=Application
      Categories=Utility;
  2. Set as default:

    • Use xdg-mime to associate calculator MIME types:
      xdg-mime default calculator.desktop application/x-calculator

🧠 Author

Created by Patrick Welch β€” pragmatic, detail-oriented, and passionate about clarity, optimization, and sharing knowledge through clean technical design.


πŸ“¬ Feedback & Contributions

Feel free to fork, improve, or suggest features via pull requests or issues. Let’s make this calculator even better together!


πŸ“ˆ Version

Current Version: 1.0.0
Status: Stable release


πŸ’‘ Future Enhancements

  • Add calculation history
  • Support scientific functions (trigonometry, logarithms)
  • Theme customization
  • Export results to text or CSV

About

A basic calculator app utilising python and tkinter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages