[파이썬 / 매크로 만들기](4) PyQt5 QPushButton 사이즈 변경, Click 이벤트
·
c. 파이썬
import sysfrom PyQt5.QtWidgets import *class MacroApp(QWidget): def __init__(self): super().__init__() self.initUi() self.state = 0 def initUi(self): self.setGeometry(700, 450, 220, 100) self.setWindowTitle('Macro') self.btn = QPushButton(self) self.btn.setText("START") # setText("START &f") shortcut - '&f' = 'Alt+f' ..
로봇쟁이
'QPushButton' 태그의 글 목록