Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

PyCalc

PyCalc is a sample calculator implemented using Python 3 and with a PyQt6 GUI. PyCalc implements basic math operations, including division, multiplication, addition, and subtraction.

PyCalc is intended to be a demonstrative example of how to build a Python + PyQt6 GUI application using the Model-View-Controller (MVC) pattern.

Screenshot

Screenshot

Requirements

For PyCalc to work, you need to have Python >= 3.6.1. Then you need to install the PyQt6 library. You can do this by using pip in a Python virtual environment:

$ python -m venv venv
$ source venv/bin/activate
$ python -m pip install pyqt6

After these commands have finished, you can run PyCalc as described in the next section.

How to Run PyCalc

To run PyCalc from your system's command line or terminal, execute the following command:

$ python pycalc.py

After running this command, you'll get PyCalc running on your machine.

How to Use PyCalc

To use PyCalc, just enter a valid math expression using your mouse and then press Enter or click the = button to get the result:

Screenshot

About the Author

Leodanis Pozo Ramos is a self-taught Python Developer, and content creator at Real Python.