摘要:
QRadioButton 该类提供了一组可供选择的按钮和文本标签,用户可以选择其中一个选项,标签用于显示对应的文本信息。单选钮是一种开关按钮,可以切换为on或者off,急checked或者unchecked,主要是为用户提供“多选一”的选择。 QRadioButton 是单选按钮默认是独占的。对于继 阅读全文
posted @ 2020-08-01 14:34
胸怀丶若谷
阅读(2971)
评论(0)
推荐(0)
摘要:
1 import sys 2 from PyQt5.QtCore import * 3 from PyQt5.QtGui import * 4 from PyQt5.QtWidgets import * 5 6 class Form(QDialog): 7 def __init__(self): 8 阅读全文
posted @ 2020-08-01 13:48
胸怀丶若谷
阅读(988)
评论(0)
推荐(0)
摘要:
在任何GUI设计中,按钮都是最重要的常用的触发动作请求的方式,用来和用户进行交互操作。在PyQt中根据不同的使用场景将按钮划分为不同的表现形式。按钮的积累是QAbstractButton,提供了按钮的通用性功能。QAbstractButton类为抽象类,不能实例化,必须有其他的按钮类继承Qabstr 阅读全文
posted @ 2020-08-01 10:21
胸怀丶若谷
阅读(267)
评论(0)
推荐(0)
摘要:
import sys from PyQt5.QtWidgets import QApplication, QWidget, QTextEdit,QVBoxLayout, QPushButton class TextEditDemo(QWidget): def __init__(self): supe 阅读全文
posted @ 2020-08-01 10:07
胸怀丶若谷
阅读(848)
评论(0)
推荐(0)
摘要:
QTextEdit类是一个多行文本框控件,可以显示多行文本内容,当文本框超出控件显示范围时,可以显示水平个垂直滚动条。QTextEdit不仅可以显示文本还可以显示HTML文档。 QTextEdit类中的常用方法如下: setPlainText():设置多行文本框的文本内容 toPlainText() 阅读全文
posted @ 2020-08-01 09:56
胸怀丶若谷
阅读(775)
评论(0)
推荐(0)
摘要:
1 import sys 2 from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout 3 from PyQt5.QtGui import QIntValidator, QDoubleValidator, QF 阅读全文
posted @ 2020-08-01 09:48
胸怀丶若谷
阅读(141)
评论(0)
推荐(0)
摘要:
1 """输入掩码""" 2 3 import sys 4 from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout 5 6 class lineEditDeom(QWidget): 7 8 def __ini 阅读全文
posted @ 2020-08-01 09:31
胸怀丶若谷
阅读(369)
评论(0)
推荐(0)

浙公网安备 33010602011771号