Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to install pyqt5 on windows

pip install PyQt5
pip install pyqt-tools

# if PyQt5 Designer not installed 
pip install PyQt5Designer
Comment

how to install pyqt5

pip install PyQt5
pip install pyqt5-tools
Comment

basic pyqt5 setup

from PyQt5 import QtWidgets
from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel
import sys

def main():
    app = QApplication(sys.argv)
    win = QMainWindow()
    win.setGeometry(200,200,300,300) 
    win.setWindowTitle("My first window!") 
    
    label = QLabel(win)
    label.setText("my first label")
    label.move(50, 50)  

    win.show()
    sys.exit(app.exec_())

main()  # make sure to call the function
Comment

PREVIOUS NEXT
Code Example
Shell :: bash weather report 
Shell :: stash untracked files 
Shell :: install all pack kubectl kubens kubectx 
Shell :: git commits by author 
Shell :: git set url with user name and password 
Shell :: check active cron jobs linux 
Shell :: lollypop music player install ubuntu 
Shell :: check if mongodb is running mac 
Shell :: install ganache cli 
Shell :: change permissions pem 
Shell :: sveltekit normalize css 
Shell :: ssh-keygen rsa 
Shell :: ubuntu higher displayer resolution 
Shell :: see installed packages pacman 
Shell :: install virtual environment ubuntu 
Shell :: ubuntu bluetooth not listed 
Shell :: untar gzip file 
Shell :: linux rename folder add suffix 
Shell :: increment variable in batch file 
Shell :: kali linux git install 
Shell :: bash how to list all variables 
Shell :: instal .deb ubuntu 
Shell :: clone from a specific branch 
Shell :: git delete local tag 
Shell :: git reset hard push to origin 
Shell :: bash remove last character 
Shell :: install ruby ubuntu 20.04 
Shell :: list recently updated packages arch 
Shell :: file location path in linux 
Shell :: format partition to ext4 linux 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =