PyQt快速开发与实战
Tsai时越
记录计算机技术学习与分享
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
PyQt5 信号槽
# -*- coding: utf-8 -*- from PyQt5.QtCore import QObject, pyqtSignal # 信号对象 class QTypeSignal(QObject): # 定义一个信号 sendpath = pyqtSignal(str) def __init__(self): super(QTypeSignal, self).__init__() def run(self): # 发射信号原创 2021-01-05 01:24:29 · 256 阅读 · 0 评论 -
PyQT5 tableWidget显示图片
# -*- coding: utf-8 -*- ''' 【简介】 PyQT5中单元格改变每行单元格显示的图标大小例子 ''' import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * class Table(QWidget): def __init__(self): super().__init__() self.in原创 2020-12-28 11:18:17 · 4151 阅读 · 0 评论 -
PyQt5 中 QTextEdit 多行文本框例子
# -*- coding: utf-8 -*- ''' 【简介】 PyQt5中 QTextEdit例子 ''' from PyQt5.QtWidgets import QApplication, QWidget, QTextEdit, QVBoxLayout, QPushButton import sys class TextEditDemo(QWidget): def __init__(self, parent=None): super(TextEditDemo原创 2020-12-27 23:31:23 · 577 阅读 · 0 评论 -
PyQt5 中 QLineEdit例子
# -*- coding: utf-8 -*- ''' 【简介】 PyQt5中 QLineEdit例子 ''' from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout from PyQt5.QtGui import QIntValidator, QDoubleValidator, QFont from PyQt5.QtCore import Qt import sys class lineEdit原创 2020-12-27 23:10:38 · 539 阅读 · 0 评论 -
PyQt5 中 QLineEdit的验证器例子
# -*- coding: utf-8 -*- ''' 【简介】 PyQt5中 QLineEdit的验证器例子 ''' from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout from PyQt5.QtGui import QIntValidator, QDoubleValidator, QRegExpValidator from PyQt5.QtCore import QRegExp import原创 2020-12-27 22:36:03 · 477 阅读 · 0 评论 -
PyQt5中 QLineEdit.EchoMode 占位符效果例子
# -*- coding: utf-8 -*- ''' 【简介】 PyQt5中 QLineEdit.EchoMode效果例子 ''' from PyQt5.QtWidgets import QApplication, QLineEdit, QWidget, QFormLayout import sys class lineEditDemo(QWidget): def __init__(self, parent=None): super(lineEditDemo,原创 2020-12-27 22:32:12 · 581 阅读 · 0 评论 -
PyQT5 中Qlabel例子
# -*- coding: utf-8 -*- ''' 【简介】 PyQT5中Qlabel例子 ''' from PyQt5.QtWidgets import QApplication, QLabel, QWidget, QVBoxLayout from PyQt5.QtCore import Qt from PyQt5.QtGui import QPixmap, QPalette import sys class WindowDemo(QWidget): def __init原创 2020-12-27 22:03:22 · 431 阅读 · 0 评论 -
PyQT5 中气泡提示
# -*- coding: utf-8 -*- ''' 【简介】 PyQT5中气泡提示 ''' import sys from PyQt5.QtGui import QIcon,QFont from PyQt5.QtWidgets import QWidget,QApplication,QToolTip,QPushButton,QHBoxLayout class IconClass(QWidget): def __init__(self,parent=None):原创 2020-12-27 16:35:57 · 1187 阅读 · 0 评论 -
PyQT5 中关闭窗体例子
# -*- coding: utf-8 -*- ''' 【简介】 PyQT5中关闭窗体例子 ''' from PyQt5.QtWidgets import QMainWindow, QHBoxLayout, QPushButton, QApplication, QWidget import sys class WinForm(QMainWindow): def __init__(self, parent=None): super(WinForm, self).原创 2020-12-27 16:22:24 · 748 阅读 · 0 评论 -
PyQt5 QCalendar是一个日历控件
''' 【简介】 PyQt5中 QCalendarWidget 例子 ''' import sys from PyQt5 import QtCore from PyQt5.QtGui import * from PyQt5.QtWidgets import * from PyQt5.QtCore import QDate class CalendarExample(QWidget): def __init__(self): super(CalendarExampl原创 2020-12-27 16:06:25 · 203 阅读 · 0 评论 -
PyQt5 主窗口显示居中
# -*- coding: utf-8 -*- ''' 【简介】 PyQT5将窗口放在屏幕中间例子 ''' from PyQt5.QtWidgets import QDesktopWidget, QApplication, QMainWindow import sys class Winform(QMainWindow): def __init__(self, parent=None): super(Winform, self).__init__(parent)原创 2020-12-27 15:58:07 · 1051 阅读 · 0 评论
分享