QCheckBox
선택, 선택하지 않음 두 가지 상태값을 가진 CheckBox 위젯입니다.
생성
# -*- coding: UTF-8 -*-
import sys
from PyQt5.QtWidgets import *
from PyQt5 import QtGui
from PyQt5.QtCore import Qt
class App(QCheckBox) :
def __init__(self):
super(App, self).__init__()
self.setWindowTitle('Window!!!')
self.resize(600,600)
self.setStyleSheet('color:red;font-size:45px;')
self.setText('확인')
if __name__ == '__main__':
app = QApplication(sys.argv)
window = App()
window.show()
sys.exit(app.exec_())체크 상태 변경
Last updated