A desktop calculator application built with Python and PyQt5.
Supports mouse and keyboard input, basic arithmetic operations, and several advanced mathematical functions.
- Mouse and keyboard input (always enabled)
- Clean and intuitive calculator layout
- Supports large numbers with horizontal scrolling
- Input validation (no letters or invalid symbols)
- Addition
+ - Subtraction
- - Multiplication
* - Division
/ - Power
x^y - Square
x² - Square root
√x - Factorial
!- Supports values like
3and3.0 - Rejects negative and non-integer values
- Supports values like
The calculator fully supports keyboard input:
0–9— digits+ - * / . ^— operatorsEnter— calculate resultBackspace— delete last characterEsc— clear input
Invalid characters (letters, unsupported symbols) are automatically blocked.
- Python 3
- PyQt5
- Standard Python libraries (
math)
- Install dependencies:
pip install pyqt5
