加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PyQT_Form.py 9.63 KB
一键复制 编辑 原始数据 按行查看 历史
hxh_create 提交于 2021-12-07 17:12 . first commit
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'PyQT_Form.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(775, 643)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Form.sizePolicy().hasHeightForWidth())
Form.setSizePolicy(sizePolicy)
Form.setMinimumSize(QtCore.QSize(775, 643))
Form.setMaximumSize(QtCore.QSize(775, 643))
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/images/logo.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
Form.setWindowIcon(icon)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(Form)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.widget = QtWidgets.QWidget(Form)
self.widget.setObjectName("widget")
self.widget_2 = QtWidgets.QWidget(self.widget)
self.widget_2.setGeometry(QtCore.QRect(0, 0, 701, 211))
self.widget_2.setObjectName("widget_2")
self.layoutWidget = QtWidgets.QWidget(self.widget_2)
self.layoutWidget.setGeometry(QtCore.QRect(30, 100, 181, 51))
self.layoutWidget.setObjectName("layoutWidget")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.layoutWidget)
self.horizontalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.label_3 = QtWidgets.QLabel(self.layoutWidget)
self.label_3.setObjectName("label_3")
self.horizontalLayout_4.addWidget(self.label_3)
self.Method = QtWidgets.QComboBox(self.layoutWidget)
self.Method.setObjectName("Method")
self.Method.addItem("")
self.Method.addItem("")
self.Method.addItem("")
self.Method.addItem("")
self.Method.addItem("")
self.horizontalLayout_4.addWidget(self.Method)
self.Caculate = QtWidgets.QPushButton(self.widget_2)
self.Caculate.setGeometry(QtCore.QRect(30, 160, 101, 31))
self.Caculate.setObjectName("Caculate")
self.Reset = QtWidgets.QPushButton(self.widget_2)
self.Reset.setGeometry(QtCore.QRect(140, 160, 101, 31))
self.Reset.setObjectName("Reset")
self.Help = QtWidgets.QPushButton(self.widget_2)
self.Help.setGeometry(QtCore.QRect(250, 160, 101, 31))
self.Help.setObjectName("Help")
self.line = QtWidgets.QFrame(self.widget_2)
self.line.setGeometry(QtCore.QRect(10, 200, 611, 16))
self.line.setFrameShape(QtWidgets.QFrame.HLine)
self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line.setObjectName("line")
self.layoutWidget1 = QtWidgets.QWidget(self.widget_2)
self.layoutWidget1.setGeometry(QtCore.QRect(220, 100, 371, 51))
self.layoutWidget1.setObjectName("layoutWidget1")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.layoutWidget1)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_target = QtWidgets.QLabel(self.layoutWidget1)
self.label_target.setObjectName("label_target")
self.horizontalLayout_6.addWidget(self.label_target)
self.lineEdit_target_x = QtWidgets.QLineEdit(self.layoutWidget1)
self.lineEdit_target_x.setObjectName("lineEdit_target_x")
self.horizontalLayout_6.addWidget(self.lineEdit_target_x)
self.SelectFileButton = QtWidgets.QPushButton(self.widget_2)
self.SelectFileButton.setGeometry(QtCore.QRect(600, 40, 93, 28))
self.SelectFileButton.setObjectName("SelectFileButton")
self.layoutWidget2 = QtWidgets.QWidget(self.widget_2)
self.layoutWidget2.setGeometry(QtCore.QRect(30, 20, 561, 30))
self.layoutWidget2.setObjectName("layoutWidget2")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.layoutWidget2)
self.horizontalLayout_7.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label = QtWidgets.QLabel(self.layoutWidget2)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.lineEdit_x = QtWidgets.QLineEdit(self.layoutWidget2)
self.lineEdit_x.setContextMenuPolicy(QtCore.Qt.NoContextMenu)
self.lineEdit_x.setText("")
self.lineEdit_x.setObjectName("lineEdit_x")
self.horizontalLayout.addWidget(self.lineEdit_x)
self.horizontalLayout_7.addLayout(self.horizontalLayout)
self.layoutWidget3 = QtWidgets.QWidget(self.widget_2)
self.layoutWidget3.setGeometry(QtCore.QRect(30, 60, 561, 32))
self.layoutWidget3.setObjectName("layoutWidget3")
self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.layoutWidget3)
self.horizontalLayout_8.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_8.setObjectName("horizontalLayout_8")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.label_2 = QtWidgets.QLabel(self.layoutWidget3)
self.label_2.setObjectName("label_2")
self.horizontalLayout_3.addWidget(self.label_2)
self.lineEdit_y = QtWidgets.QLineEdit(self.layoutWidget3)
self.lineEdit_y.setObjectName("lineEdit_y")
self.horizontalLayout_3.addWidget(self.lineEdit_y)
self.horizontalLayout_8.addLayout(self.horizontalLayout_3)
self.SelectFileButton_2 = QtWidgets.QPushButton(self.widget_2)
self.SelectFileButton_2.setGeometry(QtCore.QRect(602, 110, 91, 28))
self.SelectFileButton_2.setObjectName("SelectFileButton_2")
self.widget_3 = QtWidgets.QWidget(self.widget)
self.widget_3.setGeometry(QtCore.QRect(0, 210, 751, 411))
self.widget_3.setObjectName("widget_3")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.widget_3)
self.horizontalLayout_5.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
self.label_4 = QtWidgets.QLabel(self.widget_3)
self.label_4.setObjectName("label_4")
self.verticalLayout.addWidget(self.label_4)
self.line_3 = QtWidgets.QFrame(self.widget_3)
self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_3.setObjectName("line_3")
self.verticalLayout.addWidget(self.line_3)
self.textBrowser = QtWidgets.QTextBrowser(self.widget_3)
self.textBrowser.setObjectName("textBrowser")
self.verticalLayout.addWidget(self.textBrowser)
self.horizontalLayout_5.addLayout(self.verticalLayout)
self.verticalLayout_2 = QtWidgets.QVBoxLayout()
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.label_5 = QtWidgets.QLabel(self.widget_3)
self.label_5.setObjectName("label_5")
self.verticalLayout_2.addWidget(self.label_5)
self.line_4 = QtWidgets.QFrame(self.widget_3)
self.line_4.setFrameShape(QtWidgets.QFrame.HLine)
self.line_4.setFrameShadow(QtWidgets.QFrame.Sunken)
self.line_4.setObjectName("line_4")
self.verticalLayout_2.addWidget(self.line_4)
self.graphicsView = QtWidgets.QGraphicsView(self.widget_3)
self.graphicsView.setInteractive(True)
self.graphicsView.setCacheMode(QtWidgets.QGraphicsView.CacheNone)
self.graphicsView.setObjectName("graphicsView")
self.verticalLayout_2.addWidget(self.graphicsView)
self.horizontalLayout_5.addLayout(self.verticalLayout_2)
self.horizontalLayout_2.addWidget(self.widget)
self.retranslateUi(Form)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "插值计算"))
self.label_3.setText(_translate("Form", "Method"))
self.Method.setItemText(0, _translate("Form", "Lagrange"))
self.Method.setItemText(1, _translate("Form", "Newton"))
self.Method.setItemText(2, _translate("Form", "Hermite"))
self.Method.setItemText(3, _translate("Form", "Cubic"))
self.Method.setItemText(4, _translate("Form", "Inverse"))
self.Caculate.setText(_translate("Form", "Calculate"))
self.Reset.setText(_translate("Form", "Reset"))
self.Help.setText(_translate("Form", "Help"))
self.label_target.setText(_translate("Form", "Xtarget"))
self.lineEdit_target_x.setPlaceholderText(_translate("Form", "目标x值"))
self.SelectFileButton.setText(_translate("Form", "SecletFile"))
self.label.setText(_translate("Form", "Xvalue"))
self.lineEdit_x.setPlaceholderText(_translate("Form", "请输入英文逗号分隔的数据"))
self.label_2.setText(_translate("Form", "Yvalue"))
self.lineEdit_y.setPlaceholderText(_translate("Form", "请输入英文逗号分隔的数据"))
self.SelectFileButton_2.setText(_translate("Form", "SecletFile"))
self.label_4.setText(_translate("Form", "Result"))
self.label_5.setText(_translate("Form", "Graph"))
import resource_rc
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化