PyQt5:QRadioButton 作为单选框(编号23)
发布时间
阅读量:
阅读量
研读《PyQt4入门指南 PDF中文版.pdf》所整理的学习记录


dioButton单选框
**** 该组件存在两种状态,分别为选中状态与非选中状态。当用户执行选择或取消选择操作时,单选框将触发一个toggled(bool checked)信号
<span style="font-size:12px;">#!/usr/bin/python
# RadioButton.py
from PyQt5.QtWidgets import QApplication, QRadioButton
from PyQt5 import QtWidgets
from PyQt5.QtCore import Qt
class RadioButton(QtWidgets.QWidget):
全部评论 (0)
还没有任何评论哟~
