Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QCalculator

A clean, resizable calculator written in Python with PyQt6 (preferred) / PyQt5 (fallback). It supports chained expressions (e.g., 41.0 + 44 + 4) via a safe AST evaluator, larger readable digits, and a modern, keyboard-friendly UI.

Image

License:

Features

  • Arithmetic: + − × ÷ (evaluated as + - * /), decimals, unary +/-, parentheses are supported.

  • Safe evaluation: Only numbers and + - * / are allowed (no functions/variables).

  • UI/UX: Large, legible display and buttons; clean dark theme with hover/pressed highlights.

  • Keyboard friendly: Type numbers/operators and hit Enter to compute.

Dependencies

You can use either PyQt6 or PyQt5.

Using pip:

Option A: PyQt6

	pip install PyQt6

Option B: PyQt5

	pip install PyQt5

Debian/Ubuntu packages

Option A: PyQt6:

	sudo apt install python3-pyqt6

Option B: PyQt5

	sudo apt install python3-pyqt5

About

Python + QT5 calculator

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages