随笔分类 -  python,vscode,pyqt5

2022年5月11日星期三
摘要:1、今天完成了对于界面的布置 (1)解决了Qt designer的环境布置和低压成品布局的简单编写。 (2)实现了页面了显示 2、后续想法 (1)解决git上传gitgee的问题; (2)对于这个项目: (2-1)没有解决录入方式。 l 入库方面,点击库位按钮,跳出一个弹窗,然后输入对应的出厂编码和 阅读全文

posted @ 2022-05-11 16:33 dandanduba 阅读(59) 评论(0) 推荐(0)

[python]PyQt5-textEdit、lineEdit操作
摘要:1.定义一个textEdit/lineEdit:(lineEdit只需要将代码中的QTextEdit改为QLineEdit) self.textEdit = QtWidgets.QTextEdit(Dialog) self.textEdit.setGeometry(QtCore.QRect(70, 阅读全文

posted @ 2020-03-19 16:05 dandanduba 阅读(3965) 评论(0) 推荐(0)

猜数字小游戏
摘要:总结: 1。下面这行代码用于点击关闭的时候提示弹窗; def closeEvent(self, event): reply = QMessageBox.question(self, '确认', '确认退出吗?', QMessageBox.Yes|QMessageBox.No) if reply == 阅读全文

posted @ 2020-03-19 13:33 dandanduba 阅读(217) 评论(0) 推荐(0)

[python]PyQt5- QLineEdit综合案例
摘要:综合应用 import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * class testLinEdit_003(QWidget): def __init__(self): 阅读全文

posted @ 2020-03-18 11:46 dandanduba 阅读(710) 评论(0) 推荐(0)

[python]PyQt5- QLineEdit综合案例
摘要:综合案例 import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * class testLinEdit_003(QWidget): def __init__(self): 阅读全文

posted @ 2020-03-18 11:37 dandanduba 阅读(271) 评论(0) 推荐(0)

[python]PyQt5- QLineEdit和校验器
摘要:校验器:限制输入的内容 import sys from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * class testLinEdit_002(QWidget): def __init__ 阅读全文

posted @ 2020-03-18 11:09 dandanduba 阅读(1235) 评论(0) 推荐(0)

[PYTHON]PyQt5 前置程序
摘要:import sys # QApplication管理GUI程序的控制流和主要设置。 # QMainWindow主窗口管理 from PyQt5.QtWidgets import QApplication,QMainWindow import Ui_text11 if __name__ == "__ 阅读全文

posted @ 2020-03-18 09:02 dandanduba 阅读(350) 评论(0) 推荐(0)

[python]PyQt5- QLineEdit
摘要:1.回显模式(EchoMode) (1)Normal(输入什么显示什么) (2)NoEcho(提交输入给计算机,但不回显) (3)Password (4)PasswordEchoOnEdit(先Echo,过一会然后用*代替) from PyQt5.QtWidgets import * import 阅读全文

posted @ 2020-03-17 10:16 dandanduba 阅读(577) 评论(0) 推荐(0)

[python]PyQt5- QLabel与伙伴控件
摘要:from PyQt5.QtWidgets import * import sys class lianxi_007(QDialog): def __init__(self): super().__init__() self.initUI() def initUI(self): self.setWin 阅读全文

posted @ 2020-03-17 09:52 dandanduba 阅读(742) 评论(0) 推荐(0)

[python]PyQt5-designer-练手小项目——计算器
摘要:问题1: 'mywindow' object has no attribute 'setCentralWidget' 解决方法: 在designer中选择错误,我选择了QMainWindow,需要改为QWights 问题2: local variable 'num' referenced befor 阅读全文

posted @ 2020-03-16 15:23 dandanduba 阅读(711) 评论(0) 推荐(0)

[python]PyQt5- QLabel控件。
摘要:一、Qlabel类中的常用方法setAlignment():按固定值方式对其文本: Qt.AlignLeft:水平方向靠左对其Qt.AlignRight:水平方向靠右对其Qt.AlignCenter:水平方向居中对其Qt.AlignJustify:水平方向两端对齐Qt.AlignTop:垂直方向靠上 阅读全文

posted @ 2020-03-12 14:56 dandanduba 阅读(2794) 评论(0) 推荐(0)

[python]PyQt5-设置按钮
摘要:import sys from PyQt5.QtWidgets import QToolTip,QPushButton,QApplication, QHBoxLayout, QMainWindow, QPushButton, QWidget from PyQt5.QtGui import QIcon 阅读全文

posted @ 2020-03-12 14:53 dandanduba 阅读(2649) 评论(0) 推荐(0)

[python]PyQt5-手写窗口(状态栏,屏幕边框,图标等)
摘要:import sys from PyQt5.QtWidgets import QMainWindow,QApplication from PyQt5.QtGui import QIcon class FirstMainWin(QMainWindow): def __init__(self, pare 阅读全文

posted @ 2020-03-11 15:47 dandanduba 阅读(1175) 评论(0) 推荐(0)

【python VS code】布置designer环境
摘要:https://blog.csdn.net/RooKichenn/article/details/121751586 安装pyqt5:商店搜索; 设置shell: 文件→首选项→设置;;搜索shell;;setting.json;; 1 { 2 "git.ignoreMissingGitWarnin 阅读全文

posted @ 2020-03-09 21:29 dandanduba 阅读(206) 评论(0) 推荐(0)

导航