Skip to main content

Simple PyQt5 calculator application

Project description

Calculator v0.1

img_1.png

A simple desktop calculator built with Python and PyQt5.
This project was developed for learning purposes and demonstrates the integration of GUI design with functional backend logic.


Features

  • Basic arithmetic operations: addition, subtraction, multiplication, division
  • Percentage calculation
  • Square root
  • Change number sign (+/-)
  • Exponentiation
  • Calculation history:
    • View past operations
    • Clear history
  • Customizable UI:
    • .ui files created in Qt Designer
    • Styled with .qss (Qt Style Sheets)

Project Structure

img_3.png

Installation

You can run the calculator locally or install it as a package.

1. Clone the repository

git clone https://github.com/<your-username>/calculator.git
cd calculator

2. Create a virtual environment

python -m venv venv
venv\Scripts\activate 

3. Install dependencies

pip install -r requirements.txt

4.Run locally

python -m calculator.main

Installing via pip install

pip install pyqt5‑calculator0.1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyqt5_calculator0_1-0.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyqt5_calculator0_1-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file pyqt5_calculator0_1-0.1.0.tar.gz.

File metadata

  • Download URL: pyqt5_calculator0_1-0.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.9

File hashes

Hashes for pyqt5_calculator0_1-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a1381dd511872a6478a3fbd19c8ee2ace71adee723cff90bc9c323dcb52972ee
MD5 74d56eca1930282baad508fe8fa3b304
BLAKE2b-256 acb97b2d5e9c475947e5bb2f00266f819eb9908d57cf0f0a0e3fd40765e5bc04

See more details on using hashes here.

File details

Details for the file pyqt5_calculator0_1-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyqt5_calculator0_1-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de2c07350f8be40cc15fb6a7adae976e5a05e0b2896d5e40e364526372b7fd0e
MD5 b99b43f55b9cfe38fe75d6b604c6dc83
BLAKE2b-256 c4a130b1233ba400141f1af6489b1fa3a970aa15f5d02b56f3e575039e75b3d7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page