This project is a simple calculator implemented using the PySide6 library. It supports basic arithmetic, number square, square root, inverse number, and keyboard operation.
This project is my first small Python project.
-
Basic arithmetic operations: addition, subtraction, multiplication, division
-
Additional operations: square, square root, inverse number (1/x)
-
Working with the keyboard (entering numbers and operations)
-
Clear, input and last character removal buttons
- PySide6
- keyboard
pip install PySide6
pip install keyboard
Calculator - main class that creates a GUI and processes input
setup_key_bindings - setting up hotkeys for interacting with the calculator
on_button_clicked - Processing of button presses