Skip to main content

Posts

Showing posts from August, 2018

PyQt5 Doc - Part1

Desktop Application Development with Python - PyQt5 Module Install: Below are the required modules for PyQt5 application development pip install PyQt5 pip install PyQt5-tools pip install pyqt5-installer PyQt5 Designer: To s tart PyQt5 designer go-to Python36-32\Lib\site-packages\pyqt5-tools Search for designer.exe Convert UI to PY : To Convert dialog.ui to dialog.py Use the command below on the command prompt. pyuic5 dialog.ui > dialog.py pyuic5 -x firstgui.ui -o firstgui.py Creat QRC file: - open notepad - save as file name with the extension of "QRC" Convert QRC to PY: Use the command below on the command prompt. Pyrcc5 input_file.qrc -o icons.py

Python - RAR file extract project

from PyQt5 import QtCore, QtGui, QtWidgets import patoolib import sys import PyQt5.sip class Ui_Frame(object):     def setupUi(self, Frame):         self.Frame = Frame         Frame.setObjectName("Frame")         Frame.resize(489, 279)         Frame.setStyleSheet("background-color: rgb(52, 101, 164);")         Frame.setFrameShape(QtWidgets.QFrame.StyledPanel)         Frame.setFrameShadow(QtWidgets.QFrame.Raised)         self.gridLayout = QtWidgets.QGridLayout(Frame)         self.gridLayout.setObjectName("gridLayout")         self.txtoutput = QtWidgets.QLineEdit(Frame)         self.txtoutput.setObjectName("txtoutput")         self.gridLayout.addWidget(self.txtoutput, 2, 4, 1, 1)         self.btninput = QtWidgets.QPushButton(Frame)         self.btninput.setStyleSheet("background-color: rgb(233, 185, 110);")         self.btninput.setObjectName("btninput")         self.btninput.clicked.connect(self.BrowseInput_Path)         self.