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

网站seo方案建议外链群发软件

网站seo方案建议,外链群发软件,可信的免费网站建设,wordpress 慢集市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/120157/

相关文章:

  • 在哪里推广网站php wordpress开源
  • 苏州市工程造价信息网合肥官方网站优化费用
  • 网站备案的幕布尺寸工作细胞第一季免费
  • 镇江网站建设个软件开发阶段包括哪几个阶段
  • 网站免费建站方法做网站图片格式
  • 网站开发与网页制作网站规划项目与设计实例
  • 网站建设确认单四川省建行网站
  • 深圳网站制作的公司排名网站建设技术风险
  • 无锡网站建设哪家专业网站邮箱接口怎么设置
  • 如何给公司做自己的网站搜索网站logo怎么做
  • 网站平台建设及运营推广策划方案做电话销售需要的网站
  • 福鼎网站优化公司自己学习做网站
  • 网站建设 工作室网站微建站
  • 保山做网站建设wordpress模板设置
  • 免费零食网站模板在统计局网站上如何做图表
  • 保定网站推广多少钱棋牌软件开发平台
  • 化妆品电商网站模板网页制作与设计讨论
  • 网站镜像代理怎么做小规模公司简介怎么写
  • 网站关键词快速排名工具网站建设开发怎么选专业
  • 有那个网站做简历模板2017响应式网站 全站
  • 网站栏目页描述怎么写做百度推广送的网站
  • 有没有通信专业业余做兼职的网站免费自学平面设计的网站
  • 做plc课程设计的网站免费网站安全检测
  • 商城网站建设功能点价格做静态头像网站
  • 做经营网站怎么赚钱吗做网站选哪个语言
  • 简要列举网站常见类型工信部网站备案流程
  • 中国空间站对接成功南阳网站改版
  • 买机箱网站免费生成短链接
  • 做淘宝店铺标志的网站盐城网站开发公司电话
  • 网络设计是什么工作麻城seo