pip install PyQt5
툴 설치pip install pyqt5-tools
저는 아래처럼 설치 경로에 designer.exe가 설치되었습니다. 대부분 파이썬 설치된 경로로 들어가시면 다운이 된 걸 보실 수 있으세욤
C:\Python39\Lib\site-packages\qt5_applications\Qt\bin

첫번째의 designer.exe를 누르면 아래 사진과 같이 실행이 되게 됩니다.
(1) code :
import sys
from PyQt5.QtWidgets import QApplication, QWidget
from PyQt5.QtGui import QIcon
class App(QWidget):
def __init__(self):
super().__init__()
self.title = 'Main Window'
self.left = 300
self.top = 300
self.width = 640
self.height = 480
self.initUI()
def initUI(self):
self.setWindowTitle(self.title)
self.setGeometry(self.left, self.top, self.width, self.height)
self.show()
if __name__ == '__main__':
app = QApplication(sys.argv)
app.aboutToQuit.connect(app.deleteLater)
ex = App()
sys.exit(app.exec_())
(2) 결과 :
