QRadioButton

import sys from PyQt5.QtWidgets import QApplication, QWidget, QCheckBox, QRadioButton, QVBoxLayout from PyQt5.QtCore import Qt class MyApp(QWidget): def __init__(self): super().__init__() self.initUI() def initUI(self): rbtn1 = QRadioButton('First Button', self) # 라디오 버튼 텍스트 변경 rbtn1.setText('Change Text') # 라디오 버튼 텍스트 가져오기 print(rbtn1.text()) # 라디오 버튼 체크상태 확인 print(rbtn1.isChecked()) # 라디오 버튼 체..
주지님
'QRadioButton' 태그의 글 목록