1 Star 1 Fork 1

付明哲/单位转换器

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Ui_Converter.py 4.57 KB
一键复制 编辑 原始数据 按行查看 历史
付明哲 提交于 2023-03-26 12:00 . main
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'Converter.ui'
##
## Created by: Qt User Interface Compiler version 6.4.2
##
## 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 (QApplication, QComboBox, QGridLayout, QLabel,
QLineEdit, QPushButton, QSizePolicy, QWidget)
class Ui_Form(object):
def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.resize(354, 245)
font = QFont()
font.setFamilies([u"Microsoft JhengHei UI"])
Form.setFont(font)
Form.setStyleSheet(u".QComboBox {\n"
" border-radius: 5%;\n"
"}\n"
"\n"
".QLineEdit {\n"
" border-radius: 5%;\n"
"}\n"
"\n"
".QComboBox:hover {\n"
" background-color: rgb(170, 255, 255);\n"
"}\n"
"\n"
".QLineEdit:hover {\n"
" background-color: rgb(170, 255, 255);\n"
"}")
self.gridLayout_2 = QGridLayout(Form)
self.gridLayout_2.setObjectName(u"gridLayout_2")
self.gridLayout = QGridLayout()
self.gridLayout.setObjectName(u"gridLayout")
self.twoInputEditLine = QLineEdit(Form)
self.twoInputEditLine.setObjectName(u"twoInputEditLine")
self.twoInputEditLine.setMinimumSize(QSize(100, 30))
self.gridLayout.addWidget(self.twoInputEditLine, 4, 0, 1, 1)
self.dataTypeComboBox = QComboBox(Form)
self.dataTypeComboBox.setObjectName(u"dataTypeComboBox")
self.dataTypeComboBox.setMinimumSize(QSize(0, 30))
self.dataTypeComboBox.setMaximumSize(QSize(16777215, 16777215))
self.gridLayout.addWidget(self.dataTypeComboBox, 2, 0, 1, 2)
self.transNumLabel = QLabel(Form)
self.transNumLabel.setObjectName(u"transNumLabel")
self.transNumLabel.setMaximumSize(QSize(16777215, 40))
font1 = QFont()
font1.setPointSize(30)
self.transNumLabel.setFont(font1)
self.gridLayout.addWidget(self.transNumLabel, 1, 0, 1, 1)
self.oneInputEditLine = QLineEdit(Form)
self.oneInputEditLine.setObjectName(u"oneInputEditLine")
self.oneInputEditLine.setMinimumSize(QSize(100, 30))
self.gridLayout.addWidget(self.oneInputEditLine, 3, 0, 1, 1)
self.originNumLabel = QLabel(Form)
self.originNumLabel.setObjectName(u"originNumLabel")
self.originNumLabel.setMaximumSize(QSize(100, 25))
font2 = QFont()
font2.setFamilies([u"\u963f\u91cc\u5df4\u5df4\u666e\u60e0\u4f53 Medium"])
font2.setPointSize(16)
self.originNumLabel.setFont(font2)
self.originNumLabel.setStyleSheet(u"color: rgb(155, 155, 155);")
self.gridLayout.addWidget(self.originNumLabel, 0, 0, 1, 1)
self.oneComboBox = QComboBox(Form)
self.oneComboBox.setObjectName(u"oneComboBox")
self.oneComboBox.setMinimumSize(QSize(150, 30))
self.oneComboBox.setMaximumSize(QSize(16777215, 16777215))
self.gridLayout.addWidget(self.oneComboBox, 3, 1, 1, 1)
self.twoComboBox = QComboBox(Form)
self.twoComboBox.setObjectName(u"twoComboBox")
self.twoComboBox.setMinimumSize(QSize(150, 30))
self.twoComboBox.setMaximumSize(QSize(16777215, 16777215))
self.gridLayout.addWidget(self.twoComboBox, 4, 1, 1, 1)
self.gridLayout_2.addLayout(self.gridLayout, 0, 0, 1, 1)
self.pushButton = QPushButton(Form)
self.pushButton.setObjectName(u"pushButton")
self.pushButton.setMinimumSize(QSize(100, 40))
self.pushButton.setMaximumSize(QSize(16777215, 40))
self.gridLayout_2.addWidget(self.pushButton, 1, 0, 1, 1)
self.retranslateUi(Form)
QMetaObject.connectSlotsByName(Form)
# setupUi
def retranslateUi(self, Form):
Form.setWindowTitle(QCoreApplication.translate("Form", u"\u5355\u4f4d\u8f6c\u6362\u5668", None))
self.transNumLabel.setText(QCoreApplication.translate("Form", u"TextLabel", None))
self.originNumLabel.setText(QCoreApplication.translate("Form", u"TextLabel", None))
self.pushButton.setText(QCoreApplication.translate("Form", u"\u8ba1\u7b97", None))
# retranslateUi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/fu-mingzhe/converter.git
git@gitee.com:fu-mingzhe/converter.git
fu-mingzhe
converter
单位转换器
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385