"PyQt5"의 두 판 사이의 차이
둘러보기로 가기
검색하러 가기
잔글 |
잔글 (→Widget) |
||
3번째 줄: | 3번째 줄: | ||
== Widget == | == Widget == | ||
* QMainWinow | * QMainWinow | ||
− | + | obj.setGeometry(x, y, width, height) | |
+ | |||
+ | * QStatusBar | ||
+ | obj.showMessage(~) | ||
+ | |||
* QPushButton | * QPushButton | ||
− | + | obj.move(x, y) | |
− | + | obj.resize(width, height) | |
− | + | obj.clicked.connect(~) | |
+ | |||
* QLabel | * QLabel | ||
− | + | obj.text() | |
− | + | obj.setText(~) | |
− | + | obj.clear() | |
+ | |||
* QLineEdit | * QLineEdit | ||
− | + | obj.textChanged.connect(~) | |
+ | obj.returnPressed.connect(~) #--- Enter key 입력시 호출 | ||
+ | |||
+ | * QGroupBox | ||
+ | |||
+ | * QRadioButton | ||
+ | obj.setChecked(True) | ||
+ | obj.clicked.connect(~) | ||
+ | |||
+ | * QCheckBox | ||
+ | obj.stateChanged.connect(~) | ||
+ | |||
+ | * QSpinBox | ||
+ | obj.setMinimum(~) | ||
+ | obj.setSingleStep(~) | ||
+ | obj.setMaximum(~) | ||
+ | obj.valueChanged.connect(~) | ||
== 참고 문헌 == | == 참고 문헌 == | ||
[[Category: 프로그램 언어]] | [[Category: 프로그램 언어]] |
2018년 7월 12일 (목) 16:30 판
PyQt5를 정리 합니다.
Widget
- QMainWinow
obj.setGeometry(x, y, width, height)
- QStatusBar
obj.showMessage(~)
- QPushButton
obj.move(x, y) obj.resize(width, height) obj.clicked.connect(~)
- QLabel
obj.text() obj.setText(~) obj.clear()
- QLineEdit
obj.textChanged.connect(~) obj.returnPressed.connect(~) #--- Enter key 입력시 호출
- QGroupBox
- QRadioButton
obj.setChecked(True) obj.clicked.connect(~)
- QCheckBox
obj.stateChanged.connect(~)
- QSpinBox
obj.setMinimum(~) obj.setSingleStep(~) obj.setMaximum(~) obj.valueChanged.connect(~)