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.
- QCalculator Copyright (c) 2018 JJ Posti
- QCalculator comes with ABSOLUTELY NO WARRANTY; for details see: http://www.gnu.org/copyleft/gpl.html
- License is GPLv2.
-
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.
You can use either PyQt6 or PyQt5.
Using pip:
Option A: PyQt6
pip install PyQt6
Option B: PyQt5
pip install PyQt5
Option A: PyQt6:
sudo apt install python3-pyqt6
Option B: PyQt5
sudo apt install python3-pyqt5