Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ritwickrajmakhal/calculator-python-tkinter

Desktop calculator using Tkinter-Python
https://github.com/ritwickrajmakhal/calculator-python-tkinter

desktop-app python tkinter-python windows

Last synced: about 2 months ago
JSON representation

Desktop calculator using Tkinter-Python

Awesome Lists containing this project

README

        

# Desktop Calculator

![image](https://github.com/user-attachments/assets/25c8914d-40b6-4926-ac62-6100c6147582)

This project is a simple calculator application built using Python's Tkinter library. The application provides a graphical user interface (GUI) for performing basic arithmetic operations.

## Features

- **Graphical User Interface**: The application uses Tkinter to create a user-friendly interface.
- **Basic Arithmetic Operations**: Supports addition, subtraction, multiplication, and division.
- **Clear Screen**: Ability to clear the current input.
- **Error Handling**: Basic error handling for invalid expressions.

## Installation

1. **Clone the repository**:
```sh
git clone https://github.com/ritwickrajmakhal/Calculator-python-tkinter.git
cd calculator
```

2. **Install dependencies**:
Ensure you have Python installed. This project uses the Tkinter library, which is included with Python's standard library.

## Usage

1. **Run the application**:
```sh
python Calculator.py
```

2. **Using the calculator**:
- Enter numbers and operators using the provided buttons.
- Press `=` to evaluate the expression.
- Press `C` to clear the screen.

## Contributing

Contributions are welcome! Please follow these steps:

1. Fork the repository.
2. Create a new branch:
```sh
git checkout -b feature-branch
```
3. Make your changes and commit them:
```sh
git commit -m 'Add some feature'
```
4. Push to the branch:
```sh
git push origin feature-branch
```
5. Open a pull request.