반응형 파이썬 윈도우즈 프로그래밍1 Day 8. PyQt5 (Actions, Toolbars, Menus) Toolbar 툴바는 일반적으로 User Interface에서 볼 수 있는 요소이다. 툴바는 계층적으로 원하는 메뉴를 찾아서 접근하는 방식 대신에 아이콘 클릭 한 번으로 빠르게 접근가능하도록 만든다. import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import ( QApplication, QMainWindow, QToolBar, QLabel, QAction ) class MainWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("My App") label = QLabel("hello") label.setAlignment(Qt.AlignCenter) sel.. 2021. 3. 20. 이전 1 다음 반응형