Skip to content

Basic Calculator: A Python-based GUI calculator using Tkinter for simple arithmetic operations: addition, subtraction, multiplication, division, and percentage calculations. Easy-to-use interface for quick everyday calculations.

License

Notifications You must be signed in to change notification settings

fahadelahikhan/Python-GUI-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python GUI Calculator

Description

This is a simple graphical user interface (GUI) calculator built using Python and Tkinter. The calculator supports basic arithmetic operations including addition, subtraction, multiplication, division, and percentage calculations. The application features an intuitive interface with buttons for numbers, operations, and clear functionality.

Features

  • Basic arithmetic operations: addition, subtraction, multiplication, and division.
  • Percentage calculation.
  • Clear function to reset the input.
  • Easy-to-use interface with buttons for each digit and operation.

Requirements

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

Installation

  1. Clone the repository:
    git clone https://github.com/fahadelahikhan/Python-GUI-Calculator.git
  2. Navigate to the project directory:
    cd Python-GUI-Calculator

Usage

  1. Run the calculator application:
    python Basic_Calculator.py
  2. The calculator GUI will open. Use the buttons to perform calculations.

Code Overview

The main components of the code include:

  • Calculator Class: Manages the calculator's state and handles button clicks.
  • GUI Setup: Creates the Tkinter window and adds buttons for digits and operations.
  • Operations Handling: Processes input and performs calculations.

Example

To calculate 100 * 10%:

  1. Open the calculator.
  2. Press the buttons: 1 0 0 * 1 0 % =
  3. The result will be displayed.

Contributing

Contributions are welcome! If you have any suggestions or find any bugs, please create an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For any questions or suggestions, feel free to reach out to the project maintainer:


Thank you for using the Python GUI Calculator!

About

Basic Calculator: A Python-based GUI calculator using Tkinter for simple arithmetic operations: addition, subtraction, multiplication, division, and percentage calculations. Easy-to-use interface for quick everyday calculations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages