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.
- 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.
- Python 3.x
- Tkinter (usually included with Python)
- Clone the repository:
git clone https://github.com/fahadelahikhan/Python-GUI-Calculator.git
- Navigate to the project directory:
cd Python-GUI-Calculator
- Run the calculator application:
python Basic_Calculator.py
- The calculator GUI will open. Use the buttons to perform calculations.
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.
To calculate 100 * 10%
:
- Open the calculator.
- Press the buttons:
1 0 0 * 1 0 % =
- The result will be displayed.
Contributions are welcome! If you have any suggestions or find any bugs, please create an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
For any questions or suggestions, feel free to reach out to the project maintainer:
- Fahad Elahi Khan
- GitHub Profile
Thank you for using the Python GUI Calculator!