반응형 Python GUI1 Day 3. PyQt5 (QLabel) import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QApplication, QMainWindow, QLabel, QLineEdit, QVBoxLayout, QWidget class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("My App") widget = QLabel("Hello") font = widget.font() font.setPointSize(30) widget.setFont(font) widget.setAlignment(Qt.AlignHCenter | Qt.AlignVCenter) self.setCentralWidge.. 2021. 2. 9. 이전 1 다음 반응형