Skip to content

A simple calculator application built using PyQt5 for basic arithmetic operations. Allows users to perform addition, subtraction, multiplication, division, and calculate percentages.

Notifications You must be signed in to change notification settings

MuzafarovMirfayz/15.02.2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple PyQt5 Calculator

This is a basic calculator application built using PyQt5, a Python library for creating desktop applications with graphical user interfaces (GUIs).

Features

  • Addition, subtraction, multiplication, and division operations.
  • Decimal point (.) support.
  • Percentage calculation.
  • Clear (AC) and backspace (<x) buttons for input control.
  • Responsive GUI design.
  • Error handling for division by zero and other exceptions.

Getting Started

Prerequisites

Before running the application, you need to have Python 3 and PyQt5 installed on your system. You can install PyQt5 using pip:

pip install PyQt5

Running the Calculator

To run the calculator application, execute the following command:

python calculator.py

Usage

Use the number buttons (0-9) to input numbers. Press the operation buttons (+, -, *, /) to perform calculations. The "=" button computes the result of the expression. The "%" button calculates percentages. The "AC" button clears the input. The "<x" button removes the last character. Use the decimal point (.) for floating-point numbers.

Contributing

Contributions to this calculator application are welcome! If you have any suggestions, bug reports, or improvements, feel free to create an issue or submit a pull request.

About

A simple calculator application built using PyQt5 for basic arithmetic operations. Allows users to perform addition, subtraction, multiplication, division, and calculate percentages.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages