
PyQt5 : widget and layout
·
study/python
Horizontal Box Layout # -*- coding: utf-8 -*- import sys from PyQt5.QtWidgets import * class Window(QWidget): def __init__(self): super().__init__() self.setGeometry(350, 150, 400, 400) # 창의 위치와 크기 self.setWindowTitle("Horizontal Box Layout") self.UI() def UI(self): hbox = QHBoxLayout() #horizontal box layout button1 = QPushButton("Button1",self) button2 = QPushButton("Button2") button3 = QPushB..