"PyQt5"의 두 판 사이의 차이

오픈소스 비즈니스 컨설팅
둘러보기로 가기 검색하러 가기
잔글
잔글 (→‎Widget)
3번째 줄: 3번째 줄:
 
== Widget ==
 
== Widget ==
 
* QMainWinow
 
* QMainWinow
  window.setGeometry(x, y, width, height)
+
  obj.setGeometry(x, y, width, height)
 +
 
 +
* QStatusBar
 +
obj.showMessage(~)
 +
 
 
* QPushButton
 
* QPushButton
  button.move(x, y)
+
  obj.move(x, y)
  button.resize(width, height)
+
  obj.resize(width, height)
  button.clicked.connect(~)
+
  obj.clicked.connect(~)
 +
 
 
* QLabel
 
* QLabel
  label.text()
+
  obj.text()
  label.setText(~)
+
  obj.setText(~)
  label.clear()
+
  obj.clear()
 +
 
 
* QLineEdit
 
* QLineEdit
  edit.textChanged.connect(~)
+
  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(~)

참고 문헌