上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 44 下一页
摘要: QTextEdit类是一个多行文本框控件,可以显示多行文本内容,当文本框超出控件显示范围时,可以显示水平个垂直滚动条。QTextEdit不仅可以显示文本还可以显示HTML文档。 QTextEdit类中的常用方法如下: setPlainText():设置多行文本框的文本内容 toPlainText() 阅读全文
posted @ 2020-08-01 09:56 胸怀丶若谷 阅读(738) 评论(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 胸怀丶若谷 阅读(131) 评论(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 胸怀丶若谷 阅读(354) 评论(0) 推荐(0) 编辑
摘要: 1 """验证器""" 2 import sys 3 from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout 4 from PyQt5.QtGui import QIntValidator, QDoubleV 阅读全文
posted @ 2020-07-31 15:21 胸怀丶若谷 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1 import sys 2 from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout 3 4 class lineEditDemo(QWidget): 5 def __init__(self): 6 supe 阅读全文
posted @ 2020-07-30 17:42 胸怀丶若谷 阅读(487) 评论(0) 推荐(0) 编辑
摘要: QLineEdit类是一个单行文本框控件,可以输入单行字符串,如果需要输入多行字符串,使用QTextEdit类。 QLineEdit类中的常用方法: setAkignment(): 按固定值方式对齐文本: Qt.AlignLeft,水平方向靠左对齐。 Qt.AlignRight,水平方向靠右对齐 Q 阅读全文
posted @ 2020-07-30 17:27 胸怀丶若谷 阅读(578) 评论(0) 推荐(0) 编辑
摘要: 1 from PyQt5.QtWidgets import * 2 import sys 3 4 class QlabelDemo(QDialog): 5 def __init__(self): 6 super().__init__() 7 8 self.setWindowTitle('QLabel 阅读全文
posted @ 2020-07-30 16:57 胸怀丶若谷 阅读(628) 评论(0) 推荐(1) 编辑
摘要: 1 from PyQt5.QtWidgets import QApplication, QLabel, QWidget, QVBoxLayout 2 from PyQt5.QtCore import Qt 3 from PyQt5.QtGui import QPixmap, QPalette 4 i 阅读全文
posted @ 2020-07-30 15:19 胸怀丶若谷 阅读(162) 评论(0) 推荐(0) 编辑
摘要: setAlignment: 按固定值方式对齐文本 Qt.AlignLeft:水平方向靠左对齐 Qt.AlignRight:水平方向靠右对齐 Qt.AlignCenter:水平方向居中对齐 Qt.AlignJustify:水平方向调整间距两端对齐 Qt.AlignTop:垂直方向靠上对齐 Qt.Ali 阅读全文
posted @ 2020-07-30 14:43 胸怀丶若谷 阅读(1276) 评论(0) 推荐(0) 编辑
摘要: 1 """设置一个气泡提示""" 2 3 import sys 4 from PyQt5.QtWidgets import QWidget, QToolTip, QApplication 5 from PyQt5.QtGui import QFont 6 7 class Winform(QWidge 阅读全文
posted @ 2020-07-30 14:28 胸怀丶若谷 阅读(121) 评论(0) 推荐(0) 编辑
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 44 下一页