Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/musatahawar/gui-calculator
This is a simple graphical user interface (GUI) calculator created using Python and the Tkinter library. It allows you to perform basic mathematical operations and additional operations like factorial and exponentiation.
https://github.com/musatahawar/gui-calculator
c calcula gui python python-3 python3
Last synced: 5 days ago
JSON representation
This is a simple graphical user interface (GUI) calculator created using Python and the Tkinter library. It allows you to perform basic mathematical operations and additional operations like factorial and exponentiation.
- Host: GitHub
- URL: https://github.com/musatahawar/gui-calculator
- Owner: MusaTahawar
- License: mit
- Created: 2023-11-06T16:10:53.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-06T16:15:52.000Z (about 1 year ago)
- Last Synced: 2024-11-09T17:19:00.361Z (2 months ago)
- Topics: c, calcula, gui, python, python-3, python3
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Calculator GUI in Python
This is a simple graphical user interface (GUI) calculator created using Python and the Tkinter library. It allows you to perform basic mathematical operations and additional operations like factorial and exponentiation.
## Features
- Addition (+)
- Subtraction (-)
- Multiplication (*)
- Division (/)
- Exponentiation (^)
- Factorial (!)
- Clear (C)
- Error handling for invalid expressions## Requirements
- Python 3.x
- Tkinter (usually included with Python)## Usage
1. Clone this repository:
```bash
git clone https://github.com/yourusername/simple-calculator.git
```cd simple-calculator
- Run the Python script:
bashpython main.py
The calculator GUI will open, allowing you to perform calculations.## How to Use
- Click the numeric buttons to enter numbers.
- Click the operation buttons (+, -, *, /, ^, !) to perform calculations.
- Click the "=" button to display the result.
- Click the "C" button to clear the display.
- Invalid expressions will result in an "Error" message.
-
Example
## To calculate 5 factorial:- Click "5"
- Click "!"
- Click "="
- The result should be displayed as "120."
## To calculate 2^3:- Click "2"
- Click "^"
- Click "3"
- Click "="
- The result should be displayed as "8."
## License
This project is licensed under the MIT License. See the LICENSE file for details.## Acknowledgments
This project was created as a simple example of building a GUI calculator with Python and Tkinter.
Feel free to modify and improve this calculator or use it as a reference for your own projects. If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request.In this README, you can provide a brief description of the project, list its features, o