그리드레이아웃1 PyQt5 그리드 레이아웃 소개 그리드 레이아웃은 위젯을 행과 열의 그리드로 정렬하는 PyQt5의 레이아웃 매니저 중 하나입니다.이를 통해 간편하게 다양한 위젯을 정렬할 수 있습니다.import sysfrom PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QGridLayoutclass MyWindow(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): grid_layout = QGridLayout() self.setLayout(grid_layout) # 버튼 생성 및 그리드 레이아웃에 추가 button.. 2024. 5. 9. 이전 1 다음