This is a project of a simple calculator with interface graphic build in Python. 🌠
- Python 3.7.1+ installed in your machine
-
# Installing virtualenv for Python $ python3 -m pip install virtualenv # Creating your virtual environment $ python3 -m virtualenv name-of-your-virtual-environment # Activating virtual environment $ source name-of-your-virtual-environment/bin/activate
-
# Enter in folder of project $ cd calculator-python/
Make sure what the virtual environment this activated.
# Installing requirements (name-of-your-virtual-environment) $ pip install -r requirements.txt
With your virtual environment enabled
# Running the application
(name-of-your-virtual-environment) $ python main.py
If you choose modify GUI will need generate a Python class and file
-
# Enter in folder app of project $ cd app/
Make sure what the virtual environment this activated.
# Generating a Python class (name-of-your-virtual-environment) $ pyside2-uic ./UI/calculdora.ui > interface.py
For more informations acess: Using .ui Files (QUiLoader and pyside2-uic)
-
# Enter in folder app of project $ cd app/
Make sure what the virtual environment this activated.
# Generating a Python file (name-of-your-virtual-environment) $ pyside2-rcc ./UI/resources/resource.qrc -o resource_rc.py
For more informations acess: Using .qrc Files (pyside2-rcc)
Released in 2020 📕 License.
Made with ❤️ by Igor Silva. This project is under the MIT license.
Give a ⭐ if this project helped you!