This project is a simple calculator application built using Python and Tkinter. It provides a graphical user interface (GUI) for performing basic arithmetic operations such as addition, subtraction, multiplication, and division. The calculator is designed to be intuitive and easy to use, making it a great learning tool for Python beginners.
• GUI Interface: Built with Tkinter for a clean and user-friendly design.
• Basic Operations: Supports addition, subtraction, multiplication, and division.
• Clear Function: Easily reset the calculator input field.
• Responsive Layout: Buttons are arranged in a grid for easy navigation.
• Python 3.x
• Tkinter (Python's built-in GUI library)
- Clone the repository:
git clone https://github.com/Oanekrif/Py-Calculator.git
- Navigate to the project directory:
cd Py-Calculator
- Run the Python script:
python calculator.py
• Input Handling: The calculator updates the display dynamically based on user input.
• Evaluation Function: Uses Python's eval() function to compute the result.
• Error Handling: Prevents invalid operations (like division by zero) with simple checks.
• Add support for advanced mathematical operations (e.g., square root, exponentiation).
• Implement error messages for invalid inputs.
• Improve the design with custom styles or themes.
Contributions are welcome! If you'd like to add more features or improve the project, feel free to fork the repository and create a pull request.