Skip to content

Latest commit

 

History

History
49 lines (24 loc) · 1.15 KB

File metadata and controls

49 lines (24 loc) · 1.15 KB

calculator-tk

A simple GUI calculator application built using Python and Tkinter. This calculator allows users to perform basic arithmetic operations with a user-friendly graphical interface.

Features

  • Basic Operations: Addition, subtraction, multiplication, division.

  • Advanced Operations: Percentage calculation, square root.

  • Other Functionalities:

    • Clear (C): Clears the current entry.

    • All Clear (AC): Resets the calculator to its initial state.

    • Backspace (<-): Deletes the last digit of the current input.

    • Decimal point (.) for floating-point numbers.

    • Change sign (+/-): Feature placeholder.

  • Error Handling: Prevents invalid operations like division by zero.

Requirements

Python 3.11 or higher

Tkinter library (usually included with Python)

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/calculator-tk.git

    cd calculator-tk

  2. Run the application:

    python3 -m app

License

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