当前位置: 首页 > news >正文

大连公司排名seo搜索引擎优化实训报告

大连公司排名,seo搜索引擎优化实训报告,有哪些公司网站建设比较好,番禺网站开发平台1.install pyside6 2.pyside6-designer.exe 发送到桌面快捷方式 在Python安装的所在 Scripts 文件夹下找到此文件。如C:\Program Files\Python312\Scripts 3. 打开pyside6-designer 设计UI 4.保存为simple.ui 文件,再转成py文件 用代码执行 pyside6-uic.exe simpl…

1.install pyside6

2.pyside6-designer.exe 发送到桌面快捷方式

在Python安装的所在 Scripts 文件夹下找到此文件。如C:\Program Files\Python312\Scripts

 

3. 打开pyside6-designer 设计UI

4.保存为simple.ui 文件,再转成py文件

用代码执行 pyside6-uic.exe simple.ui -o simple.py

生成源文件simple.py:

# -*- coding: utf-8 -*-################################################################################
## Form generated from reading UI file 'simple.ui'
##
## Created by: Qt User Interface Compiler version 6.8.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,QMetaObject, QObject, QPoint, QRect,QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,QFont, QFontDatabase, QGradient, QIcon,QImage, QKeySequence, QLinearGradient, QPainter,QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox,QLabel, QSizePolicy, QTextEdit, QWidget)class Ui_Dialog(object):def setupUi(self, Dialog):if not Dialog.objectName():Dialog.setObjectName(u"Dialog")Dialog.resize(736, 520)self.buttonBox = QDialogButtonBox(Dialog)self.buttonBox.setObjectName(u"buttonBox")self.buttonBox.setGeometry(QRect(50, 360, 341, 32))self.buttonBox.setOrientation(Qt.Orientation.Horizontal)self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)self.txtName = QTextEdit(Dialog)self.txtName.setObjectName(u"txtName")self.txtName.setGeometry(QRect(340, 110, 221, 31))self.txtpassword = QTextEdit(Dialog)self.txtpassword.setObjectName(u"txtpassword")self.txtpassword.setGeometry(QRect(340, 170, 221, 31))self.label = QLabel(Dialog)self.label.setObjectName(u"label")self.label.setGeometry(QRect(230, 120, 61, 21))font = QFont()font.setPointSize(14)self.label.setFont(font)self.label.setLineWidth(3)self.label_2 = QLabel(Dialog)self.label_2.setObjectName(u"label_2")self.label_2.setGeometry(QRect(220, 180, 71, 21))self.label_2.setFont(font)self.retranslateUi(Dialog)self.buttonBox.accepted.connect(Dialog.objectName)self.buttonBox.rejected.connect(Dialog.objectName)QMetaObject.connectSlotsByName(Dialog)# setupUidef retranslateUi(self, Dialog):Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"Dialog", None))self.label.setText(QCoreApplication.translate("Dialog", u"\u59d3\u540d", None))self.label_2.setText(QCoreApplication.translate("Dialog", u"\u5bc6\u7801", None))# retranslateUi

加上点击事件

# -*- coding: utf-8 -*-################################################################################
## Form generated from reading UI file 'simple.ui'
##
## Created by: Qt User Interface Compiler version 6.8.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,QMetaObject, QObject, QPoint, QRect,QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,QFont, QFontDatabase, QGradient, QIcon,QImage, QKeySequence, QLinearGradient, QPainter,QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractButton, QApplication, QDialog, QDialogButtonBox,QLabel, QSizePolicy, QTextEdit, QWidget,QVBoxLayout)class Ui_Dialog(object):""""""def setupUi(self, Dialog):""":param Dialog::return:"""if not Dialog.objectName():Dialog.setObjectName(u"Dialog")Dialog.resize(736, 520)self.buttonBox = QDialogButtonBox(Dialog)self.buttonBox.setObjectName(u"buttonBox")self.buttonBox.setGeometry(QRect(90, 280, 341, 32))self.buttonBox.setOrientation(Qt.Orientation.Horizontal)self.buttonBox.setStandardButtons(QDialogButtonBox.StandardButton.Cancel|QDialogButtonBox.StandardButton.Ok)self.txtName = QTextEdit(Dialog)self.txtName.setObjectName(u"txtName")self.txtName.setGeometry(QRect(340, 110, 221, 31))self.txtpassword = QTextEdit(Dialog)self.txtpassword.setObjectName(u"txtpassword")self.txtpassword.setGeometry(QRect(340, 170, 221, 31))self.label = QLabel(Dialog)self.label.setObjectName(u"label")self.label.setGeometry(QRect(230, 120, 61, 21))font = QFont()font.setPointSize(14)self.label.setFont(font)self.label.setLineWidth(3)self.label_2 = QLabel(Dialog)self.label_2.setObjectName(u"label_2")self.label_2.setGeometry(QRect(230, 180, 71, 21))self.label_2.setFont(font)self.retranslateUi(Dialog)self.buttonBox.accepted.connect(Dialog.objectName)self.buttonBox.rejected.connect(Dialog.objectName)self.buttonBox.clicked.connect(self.buttonClicked)QMetaObject.connectSlotsByName(Dialog)# setupUidef buttonClicked(self,button):role = self.buttonBox.standardButton(button)if role == QDialogButtonBox.StandardButton.Ok:print("Save clicked")elif role == QDialogButtonBox.StandardButton.Cancel:print("Cancel clicked")def retranslateUi(self, Dialog):Dialog.setWindowTitle(QCoreApplication.translate("Dialog", u"Dialog\u6d4b\u8bd5", None))
#if QT_CONFIG(tooltip)self.buttonBox.setToolTip(QCoreApplication.translate("Dialog", u"\u6309\u786e\u5b9a", None))
#endif // QT_CONFIG(tooltip)self.label.setText(QCoreApplication.translate("Dialog", u"\u59d3\u540d", None))self.label_2.setText(QCoreApplication.translate("Dialog", u"\u5bc6\u7801", None))# retranslateUi

simply2.py 引用 simply.py

# -*- coding: utf-8 -*-
# 版权所有 2024 涂聚文有限公司
# 许可信息查看:言語成了邀功盡責的功臣,還需要行爲每日來值班嗎
# 描述:pip install pyqt6
# Author    : geovindu,Geovin Du 涂聚文.
# IDE       : PyCharm 2023.1 python 3.11
# os        : windows 10
# database  : mysql 9.0 sql server 2019, poostgreSQL 17.0
# Datetime  : 2024/12/7 23:37
# User      : geovindu
# Product   : PyCharm
# Project   : Pysimple
# File      : simply2.py
# explain   : 学习import sys
from PySide6.QtWidgets import QApplication,QWidget
from simple import Ui_Dialogclass Windows(Ui_Dialog,QWidget):""""""def __init__(self):""""""super().__init__()self.setupUi(self)if __name__ == '__main__':app=QApplication(sys.argv)win=Windows()win.show()m=app.exec()sys.exit(m)

测试运行结果:

http://www.yayakq.cn/news/288340/

相关文章:

  • 工艺礼品东莞网站建设注册餐饮公司流程和费用
  • 电影网站开发技术青岛网络建站公司
  • 内江建网站网易导入到wordpress图片
  • vs2013可以做网站么做网站电话说辞
  • 广西医科大学网站建设临沧网站开发
  • 做直播网站需要多少钱wordpress同步到报价号
  • 在线网站建设工程标准住房和城乡建设部政务服务官网
  • 手机wap网站大全王展简历
  • 外贸网站有哪些?wordpress缩略图代码显示
  • 石家庄网站建设加王道下拉科技公司网站系统
  • 网站开发天津51找呀模板网
  • 网站开发 开票网页翻译软件哪个好
  • 禅城网站制作c2c模式是什么
  • 物流网站购买物流单号科技局网站查新怎么做
  • 平面设计需要什么基础宁波seo哪家好推广
  • 保定网站维护广东东莞人才招聘网
  • 珠海网站制作推广公司哪家好广告创意设计公司
  • 网站怎样做的有吸引力云南建设工程有限公司
  • 国外网站建立小程序与app有什么区别
  • 东四网站建设自己做视频网站的流程
  • 网站每天1万ip能收入多少网站提示域名解析错误怎么办
  • 网站标题的选择wap网站模板
  • 工具磨床东莞网站建设专业的大连网站建设
  • 企业免费建站哪个网站可以接针织衫做单
  • 有自己网站做淘宝客赚钱莆田百度seo排名
  • wordpress如何增加page样式安徽seo网站
  • 建设网站的费用属于资产吗手机界面设计教程
  • 易企秀网站怎么做轮播图安徽网络优化公司排名
  • 做外贸都有哪些好网站网站开发 播放音频amr
  • 新服务器做网站如何配置seo网站排名优化软件是什么