Beautiful and functional calculator built with PyQt6
Modern dark theme, keyboard shortcuts, and scientific notation support.
calculator — a beautiful and functional calculator built with PyQt6, featuring a modern dark theme, keyboard shortcuts, and scientific notation support.
| Key | Action |
|---|---|
0-9 | Numbers |
. or , | Decimal point |
+ - * / | Operations |
Enter or = | Calculate result |
Esc or Delete | Clear all (AC) |
_ or ± | Change sign (+/-) |
% | Percentage |
Ctrl+Q | Exit application |
F1 | Open Help |
Ctrl+Alt+A | Show About |
Ctrl+/ | Show shortcuts help |
Prerequisites: Python 3.9+, pip
# Clone the repository git clone https://github.com/aixandrolab/calculator.git cd calculator # Install dependencies pip install -r requirements.txt # Run the application python app.py
Basic Calculations:
= or Enter to see the resultSpecial Functions:
AC — Clears everything and resets to zero+/- — Changes the sign of the current number% — Calculates the percentage of the current numberDecimal Numbers:
. button or press . on your keyboardError Recovery:
AC to continueThe application allows you to create desktop entries directly from the menu:
~/.local/share/applications/)~/Desktop/)What happens:
.desktop file(s) with proper configurationNote: This feature is only available on Linux systems with desktop environments that support .desktop files (GNOME, KDE, XFCE, etc.).
calculator/ ├── app.py # Main application entry point ├── core/ │ ├── __init__.py │ ├── main_window.py # Main calculator window │ └── dialogs/ │ ├── __init__.py │ ├── about_dialog.py │ ├── help_dialog.py │ └── shortcuts_dialog.py ├── data/ │ ├── icons/ │ │ └── icon.png # Application icon │ └── images/ │ └── logo.png # Screenshot for README ├── LICENSE ├── requirements.txt └── README.md
By using this software, you agree to the full disclaimer terms.
Software provided "AS IS" without warranty. You assume all risks.
Full legal disclaimer: See DISCLAIMER.md
License: BSD 3-Clause License