How to setup and run the above shopping cart code.
This code was designed with QT designer and Python programming Language.
- -1.Python 3.9.7
- -2.pyside2
- -3.Qt designer
- -pip install pyside2
- -from the following link download and install Qt designer https://www.qt.io/download-qt-installer.
- -Run your favourite IDE.
- -import sys
- -import os
- -import pyside2.
- -write the shopping cart code on the IDE
- -open and setup Qt designer
- -select dialog with buttons bottom
- -click create
- -input the interface/how you'd like the interface to look like
- -on the code editor initialize Ui buttons
- -make clickable event on button @ btnAdd.clicked.connect(self.updateCart)
- -on your favourite IDE,run the python code on the terminal
- -test if the application is working as expected