新建基础知识编辑ui

This commit is contained in:
weiye.wang 2024-04-27 22:57:28 +08:00
parent f6f99f1930
commit d3273067ec
2 changed files with 226 additions and 0 deletions

View File

@ -0,0 +1,82 @@
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file '基础知识编辑.ui'
##
## Created by: Qt User Interface Compiler version 6.6.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, QHeaderView, QLabel, QLineEdit,
QPlainTextEdit, QPushButton, QSizePolicy, QTableWidget,
QTableWidgetItem, QWidget)
class Ui_Form(object):
def setupUi(self, Form):
if not Form.objectName():
Form.setObjectName(u"Form")
Form.resize(760, 490)
self.label = QLabel(Form)
self.label.setObjectName(u"label")
self.label.setGeometry(QRect(10, 20, 54, 16))
self.lineEdit_bnid = QLineEdit(Form)
self.lineEdit_bnid.setObjectName(u"lineEdit_bnid")
self.lineEdit_bnid.setGeometry(QRect(50, 20, 113, 20))
self.plainTextEdit_content = QPlainTextEdit(Form)
self.plainTextEdit_content.setObjectName(u"plainTextEdit_content")
self.plainTextEdit_content.setGeometry(QRect(10, 70, 371, 391))
self.label_2 = QLabel(Form)
self.label_2.setObjectName(u"label_2")
self.label_2.setGeometry(QRect(10, 50, 181, 16))
self.label_3 = QLabel(Form)
self.label_3.setObjectName(u"label_3")
self.label_3.setGeometry(QRect(390, 50, 61, 16))
self.tableWidget_obj = QTableWidget(Form)
if (self.tableWidget_obj.columnCount() < 2):
self.tableWidget_obj.setColumnCount(2)
__qtablewidgetitem = QTableWidgetItem()
self.tableWidget_obj.setHorizontalHeaderItem(0, __qtablewidgetitem)
__qtablewidgetitem1 = QTableWidgetItem()
self.tableWidget_obj.setHorizontalHeaderItem(1, __qtablewidgetitem1)
self.tableWidget_obj.setObjectName(u"tableWidget_obj")
self.tableWidget_obj.setGeometry(QRect(390, 70, 281, 391))
self.pushButton_getcontent = QPushButton(Form)
self.pushButton_getcontent.setObjectName(u"pushButton_getcontent")
self.pushButton_getcontent.setGeometry(QRect(180, 20, 75, 24))
self.pushButton_modify = QPushButton(Form)
self.pushButton_modify.setObjectName(u"pushButton_modify")
self.pushButton_modify.setGeometry(QRect(680, 70, 61, 181))
self.pushButton_commit = QPushButton(Form)
self.pushButton_commit.setObjectName(u"pushButton_commit")
self.pushButton_commit.setGeometry(QRect(680, 260, 61, 201))
self.pushButton_commit.setStyleSheet(u"background-color: rgb(255, 255, 127);")
self.retranslateUi(Form)
QMetaObject.connectSlotsByName(Form)
# setupUi
def retranslateUi(self, Form):
Form.setWindowTitle(QCoreApplication.translate("Form", u"\u57fa\u7840\u77e5\u8bc6\u7f16\u8f91", None))
self.label.setText(QCoreApplication.translate("Form", u"\u7f16\u53f7", None))
self.lineEdit_bnid.setPlaceholderText(QCoreApplication.translate("Form", u"Bxxxxx", None))
self.label_2.setText(QCoreApplication.translate("Form", u"\u57fa\u7840\u77e5\u8bc6\u5185\u5bb9", None))
self.label_3.setText(QCoreApplication.translate("Form", u"\u5173\u8054\u76ee\u6807", None))
___qtablewidgetitem = self.tableWidget_obj.horizontalHeaderItem(0)
___qtablewidgetitem.setText(QCoreApplication.translate("Form", u"\u76ee\u6807ID", None));
___qtablewidgetitem1 = self.tableWidget_obj.horizontalHeaderItem(1)
___qtablewidgetitem1.setText(QCoreApplication.translate("Form", u"\u76ee\u6807\u5185\u5bb9", None));
self.pushButton_getcontent.setText(QCoreApplication.translate("Form", u"\u83b7\u53d6\u5185\u5bb9", None))
self.pushButton_modify.setText(QCoreApplication.translate("Form", u"\u4fee\u6539", None))
self.pushButton_commit.setText(QCoreApplication.translate("Form", u"\u63d0\u4ea4\u81f3\n"
"\u6570\u636e\u5e93", None))
# retranslateUi

View File

@ -0,0 +1,144 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Form</class>
<widget class="QWidget" name="Form">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>760</width>
<height>490</height>
</rect>
</property>
<property name="windowTitle">
<string>基础知识编辑</string>
</property>
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>20</y>
<width>54</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>编号</string>
</property>
</widget>
<widget class="QLineEdit" name="lineEdit_bnid">
<property name="geometry">
<rect>
<x>50</x>
<y>20</y>
<width>113</width>
<height>20</height>
</rect>
</property>
<property name="placeholderText">
<string>Bxxxxx</string>
</property>
</widget>
<widget class="QPlainTextEdit" name="plainTextEdit_content">
<property name="geometry">
<rect>
<x>10</x>
<y>70</y>
<width>371</width>
<height>391</height>
</rect>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>10</x>
<y>50</y>
<width>181</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>基础知识内容</string>
</property>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>390</x>
<y>50</y>
<width>61</width>
<height>16</height>
</rect>
</property>
<property name="text">
<string>关联目标</string>
</property>
</widget>
<widget class="QTableWidget" name="tableWidget_obj">
<property name="geometry">
<rect>
<x>390</x>
<y>70</y>
<width>281</width>
<height>391</height>
</rect>
</property>
<column>
<property name="text">
<string>目标ID</string>
</property>
</column>
<column>
<property name="text">
<string>目标内容</string>
</property>
</column>
</widget>
<widget class="QPushButton" name="pushButton_getcontent">
<property name="geometry">
<rect>
<x>180</x>
<y>20</y>
<width>75</width>
<height>24</height>
</rect>
</property>
<property name="text">
<string>获取内容</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_modify">
<property name="geometry">
<rect>
<x>680</x>
<y>70</y>
<width>61</width>
<height>181</height>
</rect>
</property>
<property name="text">
<string>修改</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_commit">
<property name="geometry">
<rect>
<x>680</x>
<y>260</y>
<width>61</width>
<height>201</height>
</rect>
</property>
<property name="styleSheet">
<string notr="true">background-color: rgb(255, 255, 127);</string>
</property>
<property name="text">
<string>提交至
数据库</string>
</property>
</widget>
</widget>
<resources/>
<connections/>
</ui>