<filename>sortUi.py
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'sort.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# 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
import csvIssue

second_classifier_list=csvIssue.init_second_classifier()
first_classifier_list=csvIssue.init_first_classifier()

class sortUi(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(440, 420)
        Form.setMinimumSize(QtCore.QSize(440, 420))
        Form.setMaximumSize(QtCore.QSize(440, 420))
        self.second_classifier = QtWidgets.QListWidget(Form)
        self.second_classifier.setGeometry(QtCore.QRect(30, 70, 151, 131))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Medium")
        font.setPointSize(14)
        self.second_classifier.setFont(font)
        self.second_classifier.setObjectName("second_classifier")
        self.second_classifier.addItems(second_classifier_list)
        self.first_classifier = QtWidgets.QListWidget(Form)
        self.first_classifier.setGeometry(QtCore.QRect(250, 70, 151, 131))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Medium")
        font.setPointSize(14)
        self.first_classifier.setFont(font)
        self.first_classifier.setObjectName("first_classifier")
        self.first_classifier.addItems(first_classifier_list)
        self.second_line = QtWidgets.QLineEdit(Form)
        self.second_line.setGeometry(QtCore.QRect(30, 220, 151, 31))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.second_line.setFont(font)
        self.second_line.setObjectName("second_line")
        self.second_line.setPlaceholderText("二级分类")

        self.first_line = QtWidgets.QLineEdit(Form)
        self.first_line.setGeometry(QtCore.QRect(250, 220, 151, 31))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.first_line.setFont(font)
        self.first_line.setObjectName("first_line")
        self.first_line.setPlaceholderText("一级分类")
        self.first_add = QtWidgets.QPushButton(Form)
        self.first_add.setGeometry(QtCore.QRect(250, 320, 71, 61))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(24)
        font.setBold(True)
        font.setWeight(75)
        self.first_add.setFont(font)
        self.first_add.setObjectName("first_add")
        self.second_add = QtWidgets.QPushButton(Form)
        self.second_add.setGeometry(QtCore.QRect(30, 320, 71, 61))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(24)
        font.setBold(True)
        font.setWeight(75)
        self.second_add.setFont(font)
        self.second_add.setObjectName("second_add")
        self.second_Box = QtWidgets.QComboBox(Form)
        self.second_Box.setGeometry(QtCore.QRect(30, 270, 151, 31))
        self.second_Box.setObjectName("second_Box")
        self.second_Box.addItems(first_classifier_list)
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Light")
        font.setPointSize(14)
        font.setBold(False)
        font.setWeight(75)
        self.second_Box.setFont(font)
        self.first_Box = QtWidgets.QComboBox(Form)
        self.first_Box.setGeometry(QtCore.QRect(250, 270, 151, 31))
        self.first_Box.setObjectName("first_Box")
        self.first_Box.addItem("总支出")
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Light")
        font.setPointSize(14)
        font.setBold(False)
        font.setWeight(75)
        self.first_Box.setFont(font)
        self.second_delete = QtWidgets.QPushButton(Form)
        self.second_delete.setGeometry(QtCore.QRect(110, 320, 71, 61))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(24)
        font.setBold(True)
        font.setWeight(75)
        self.second_delete.setFont(font)
        self.second_delete.setObjectName("second_delete")
        self.first_delete = QtWidgets.QPushButton(Form)
        self.first_delete.setGeometry(QtCore.QRect(330, 320, 71, 61))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(24)
        font.setBold(True)
        font.setWeight(75)
        self.first_delete.setFont(font)
        self.first_delete.setObjectName("first_delete")
        self.second_label = QtWidgets.QLabel(Form)
        self.second_label.setGeometry(QtCore.QRect(50, 20, 111, 31))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Light")
        font.setPointSize(20)
        font.setBold(False)
        font.setWeight(50)
        self.second_label.setFont(font)
        self.second_label.setObjectName("second_label")
        self.first_label = QtWidgets.QLabel(Form)
        self.first_label.setGeometry(QtCore.QRect(270, 20, 111, 31))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Normal")
        font.setPointSize(20)
        font.setBold(False)
        font.setWeight(50)
        self.first_label.setFont(font)
        self.first_label.setObjectName("first_label")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "编辑分类"))
        self.first_add.setText(_translate("Form", "添加"))
        self.second_add.setText(_translate("Form", "添加"))
        self.second_delete.setText(_translate("Form", "删除"))
        self.first_delete.setText(_translate("Form", "删除"))
        self.second_label.setText(_translate("Form", "二级分类"))
        self.first_label.setText(_translate("Form", "一级分类"))

<filename>sortUi.py
# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'sort.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# 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
import csvIssue

second_classifier_list=csvIssue.init_second_classifier()
first_classifier_list=csvIssue.init_first_classifier()

class sortUi(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(440, 420)
        Form.setMinimumSize(QtCore.QSize(440, 420))
        Form.setMaximumSize(QtCore.QSize(440, 420))
        self.second_classifier = QtWidgets.QListWidget(Form)
        self.second_classifier.setGeometry(QtCore.QRect(30, 70, 151, 131))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Medium")
        font.setPointSize(14)
        self.second_classifier.setFont(font)
        self.second_classifier.setObjectName("second_classifier")
        self.second_classifier.addItems(second_classifier_list)
        self.first_classifier = QtWidgets.QListWidget(Form)
        self.first_classifier.setGeometry(QtCore.QRect(250, 70, 151, 131))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Medium")
        font.setPointSize(14)
        self.first_classifier.setFont(font)
        self.first_classifier.setObjectName("first_classifier")
        self.first_classifier.addItems(first_classifier_list)
        self.second_line = QtWidgets.QLineEdit(Form)
        self.second_line.setGeometry(QtCore.QRect(30, 220, 151, 31))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.second_line.setFont(font)
        self.second_line.setObjectName("second_line")
        self.second_line.setPlaceholderText("二级分类")

        self.first_line = QtWidgets.QLineEdit(Form)
        self.first_line.setGeometry(QtCore.QRect(250, 220, 151, 31))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(14)
        font.setBold(True)
        font.setWeight(75)
        self.first_line.setFont(font)
        self.first_line.setObjectName("first_line")
        self.first_line.setPlaceholderText("一级分类")
        self.first_add = QtWidgets.QPushButton(Form)
        self.first_add.setGeometry(QtCore.QRect(250, 320, 71, 61))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(24)
        font.setBold(True)
        font.setWeight(75)
        self.first_add.setFont(font)
        self.first_add.setObjectName("first_add")
        self.second_add = QtWidgets.QPushButton(Form)
        self.second_add.setGeometry(QtCore.QRect(30, 320, 71, 61))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(24)
        font.setBold(True)
        font.setWeight(75)
        self.second_add.setFont(font)
        self.second_add.setObjectName("second_add")
        self.second_Box = QtWidgets.QComboBox(Form)
        self.second_Box.setGeometry(QtCore.QRect(30, 270, 151, 31))
        self.second_Box.setObjectName("second_Box")
        self.second_Box.addItems(first_classifier_list)
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Light")
        font.setPointSize(14)
        font.setBold(False)
        font.setWeight(75)
        self.second_Box.setFont(font)
        self.first_Box = QtWidgets.QComboBox(Form)
        self.first_Box.setGeometry(QtCore.QRect(250, 270, 151, 31))
        self.first_Box.setObjectName("first_Box")
        self.first_Box.addItem("总支出")
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Light")
        font.setPointSize(14)
        font.setBold(False)
        font.setWeight(75)
        self.first_Box.setFont(font)
        self.second_delete = QtWidgets.QPushButton(Form)
        self.second_delete.setGeometry(QtCore.QRect(110, 320, 71, 61))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(24)
        font.setBold(True)
        font.setWeight(75)
        self.second_delete.setFont(font)
        self.second_delete.setObjectName("second_delete")
        self.first_delete = QtWidgets.QPushButton(Form)
        self.first_delete.setGeometry(QtCore.QRect(330, 320, 71, 61))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Heavy")
        font.setPointSize(24)
        font.setBold(True)
        font.setWeight(75)
        self.first_delete.setFont(font)
        self.first_delete.setObjectName("first_delete")
        self.second_label = QtWidgets.QLabel(Form)
        self.second_label.setGeometry(QtCore.QRect(50, 20, 111, 31))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Light")
        font.setPointSize(20)
        font.setBold(False)
        font.setWeight(50)
        self.second_label.setFont(font)
        self.second_label.setObjectName("second_label")
        self.first_label = QtWidgets.QLabel(Form)
        self.first_label.setGeometry(QtCore.QRect(270, 20, 111, 31))
        font = QtGui.QFont()
        font.setFamily("思源黑体 CN Normal")
        font.setPointSize(20)
        font.setBold(False)
        font.setWeight(50)
        self.first_label.setFont(font)
        self.first_label.setObjectName("first_label")

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "编辑分类"))
        self.first_add.setText(_translate("Form", "添加"))
        self.second_add.setText(_translate("Form", "添加"))
        self.second_delete.setText(_translate("Form", "删除"))
        self.first_delete.setText(_translate("Form", "删除"))
        self.second_label.setText(_translate("Form", "二级分类"))
        self.first_label.setText(_translate("Form", "一级分类"))

# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'sort.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # 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.