Skip to content

phenyosHarbour/simple-calculator-gui-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Calculator GUI (Python)

A simple, user-friendly calculator application built with Python. This project provides a graphical user interface (GUI) for performing basic arithmetic operations such as addition, subtraction, multiplication, and division. Ideal for Python beginners who want to learn about GUI programming and basic application structure.

Features

  • Intuitive graphical interface
  • Supports addition, subtraction, multiplication, and division
  • Input validation for common errors (e.g., division by zero)
  • Clear and reset functions
  • Lightweight and easy to use

Getting Started

Prerequisites

  • Python 3.x
  • Tkinter (usually included with Python standard library)

Installation

  1. Clone the repository:

    git clone https://github.com/phenyosHarbour/simple-calculator-gui-python.git
    cd simple-calculator-gui-python
  2. Run the calculator:

    python calculator.py

    Or replace calculator.py with the main script filename if different.

Usage

  1. Enter numbers using the GUI buttons or your keyboard.
  2. Select an operation (+, -, ×, ÷).
  3. Press = to view the result.
  4. Use C or Clear button to reset the input.

Project Structure

simple-calculator-gui-python/
│
├── calculator.py       # Main application file
├── README.md           # Project documentation
├── requirements.txt    # (Optional) Dependencies
└── ...                 # Other files and resources

Contributing

Contributions are welcome! Please open an issue or submit a pull request with your improvements or bug fixes.

Author

Created by phenyosHarbour

Acknowledgements

  • Python community for tutorials and documentation
  • Tkinter for the GUI framework

About

Python Calculator

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages