Skip to main content

Python PyQt5

Install below packages - for windows 

pip install PyQt5
pip install PyQt5-tools
pip install pyqt5-installer

Download PyQt5 Designer from the below link

https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.6/PyQt5-5.6-gpl-Py3.5-Qt5.6.0-x32-2.exe/download



Comments

  1. install one more library

    pip install pyqt5-installer

    ReplyDelete
  2. To start PyQt5 designer go-to

    Python36-32\Lib\site-packages\pyqt5-tools

    Search for designer.exe

    ReplyDelete
  3. https://www.codementor.io/deepaksingh04/design-simple-dialog-using-pyqt5-designer-tool-ajskrd09n

    ReplyDelete
  4. https://github.com/ashwinpilgaonkar/ui2py

    ReplyDelete
  5. Converting dialog.ui to dialog.py
    Use the command below on the command prompt.

    pyuic5 dialog.ui > dialog.py

    ReplyDelete
  6. Convert QRC to PY

    Pyrcc5 input_file.qrc -o icons.py

    ReplyDelete
  7. Convert UI to PY

    pyuic5 -x firstgui.ui -o firstgui.py

    ReplyDelete
  8. To create a QRC file

    - open notepad
    - save as file name with the extension of "QRC"

    ReplyDelete
  9. https://likegeeks.com/pyqt5-tutorial/

    ReplyDelete

Post a Comment

Popular posts from this blog

Python - PyQt5 set Background image

import sys from PyQt5.QtCore import QSize from PyQt5.QtGui import QImage, QPalette, QBrush from PyQt5.QtWidgets import * class MainWindow ( QWidget ): def __init__ ( self ): QWidget. __init__ ( self ) self .setGeometry( 100 , 100 , 300 , 200 ) oImage = QImage( "test.jpg" ) sImage = oImage.scaled(QSize( 300 , 200 )) # resize Image to widgets size palette = QPalette() palette.setBrush( 10 , QBrush(sImage)) # 10 = Windowrole self .setPalette(palette) self .show() if __name__ == "__main__" : app = QApplication(sys.argv) oMainwindow = MainWindow() sys.exit(app.exec_())

VBA - UI Automation Sample code:

VBA Reference to be added: VBA - UI Automation Project sample code Dim MyElement As UIAutomationClient.IUIAutomationElement Dim MyElement1 As UIAutomationClient.IUIAutomationElement 'Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Public Enum oConditions    eUIA_NamePropertyId    eUIA_AutomationIdPropertyId    eUIA_ClassNamePropertyId    eUIA_LocalizedControlTypePropertyId End Enum Sub Test() Dim AppObj As UIAutomationClient.IUIAutomationElement Dim oInvokePattern As UIAutomationClient.IUIAutomationInvokePattern Dim oAutomation As New CUIAutomation ' the UI Automation API\ Dim oPattern As UIAutomationClient.IUIAutomationLegacyIAccessiblePattern Set AppObj = WalkEnabledElements("BTB Portal 3.0 KA") Set MyElement = AppObj.FindFirst(TreeScope_Children, PropCon...