Musicreater/pp.py
bgArray 28d59f8be9 2023/1/3 update-窗口3
还有很多要改的,得加油
2023-01-03 21:55:08 +08:00

581 lines
23 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
##########################################################################
# Form generated from reading UI file 'PySide6-Pkg.ui'
##
# Created by: Qt User Interface Compiler version 6.4.1
##
# 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 (QAction, QBrush, QColor, QConicalGradient,
QCursor, QFont, QFontDatabase, QGradient,
QIcon, QImage, QKeySequence, QLinearGradient,
QPainter, QPalette, QPixmap, QRadialGradient,
QTransform)
from PySide6.QtWidgets import (
QApplication,
QCheckBox,
QComboBox,
QHBoxLayout,
QHeaderView,
QLabel,
QMainWindow,
QMenu,
QMenuBar,
QSizePolicy,
QSlider,
QSpinBox,
QStatusBar,
QTabWidget,
QTableWidget,
QTableWidgetItem,
QTextEdit,
QToolButton,
QVBoxLayout,
QWidget)
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(800, 600)
self.action = QAction(MainWindow)
self.action.setObjectName(u"action")
icon = QIcon()
iconThemeName = u"document-open"
if QIcon.hasThemeIcon(iconThemeName):
icon = QIcon.fromTheme(iconThemeName)
else:
icon.addFile(u".", QSize(), QIcon.Normal, QIcon.Off)
self.action.setIcon(icon)
self.action_Input = QAction(MainWindow)
self.action_Input.setObjectName(u"action_Input")
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.verticalLayoutWidget = QWidget(self.centralwidget)
self.verticalLayoutWidget.setObjectName(u"verticalLayoutWidget")
self.verticalLayoutWidget.setGeometry(QRect(0, 0, 951, 611))
self.verticalLayout = QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.tabO = QTabWidget(self.verticalLayoutWidget)
self.tabO.setObjectName(u"tabO")
self.tab = QWidget()
self.tab.setObjectName(u"tab")
self.verticalLayoutWidget_2 = QWidget(self.tab)
self.verticalLayoutWidget_2.setObjectName(u"verticalLayoutWidget_2")
self.verticalLayoutWidget_2.setGeometry(QRect(0, 0, 881, 591))
self.verticalLayout_2 = QVBoxLayout(self.verticalLayoutWidget_2)
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
self.tableWidget = QTableWidget(self.verticalLayoutWidget_2)
self.tableWidget.setObjectName(u"tableWidget")
self.verticalLayout_2.addWidget(self.tableWidget)
self.tabO.addTab(self.tab, "")
self.tab_2 = QWidget()
self.tab_2.setObjectName(u"tab_2")
self.label = QLabel(self.tab_2)
self.label.setObjectName(u"label")
self.label.setGeometry(QRect(10, 10, 71, 16))
self.widget = QWidget(self.tab_2)
self.widget.setObjectName(u"widget")
self.widget.setGeometry(QRect(0, 30, 281, 131))
self.verticalLayoutWidget_3 = QWidget(self.widget)
self.verticalLayoutWidget_3.setObjectName(u"verticalLayoutWidget_3")
self.verticalLayoutWidget_3.setGeometry(QRect(10, 0, 271, 131))
self.verticalLayout_3 = QVBoxLayout(self.verticalLayoutWidget_3)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.label_2 = QLabel(self.verticalLayoutWidget_3)
self.label_2.setObjectName(u"label_2")
self.verticalLayout_3.addWidget(self.label_2)
self.label_4 = QLabel(self.verticalLayoutWidget_3)
self.label_4.setObjectName(u"label_4")
self.verticalLayout_3.addWidget(self.label_4)
self.label_5 = QLabel(self.verticalLayoutWidget_3)
self.label_5.setObjectName(u"label_5")
self.verticalLayout_3.addWidget(self.label_5)
self.label_7 = QLabel(self.verticalLayoutWidget_3)
self.label_7.setObjectName(u"label_7")
self.verticalLayout_3.addWidget(self.label_7)
self.label_6 = QLabel(self.verticalLayoutWidget_3)
self.label_6.setObjectName(u"label_6")
self.verticalLayout_3.addWidget(self.label_6)
self.label_3 = QLabel(self.verticalLayoutWidget_3)
self.label_3.setObjectName(u"label_3")
self.verticalLayout_3.addWidget(self.label_3)
self.widget_2 = QWidget(self.tab_2)
self.widget_2.setObjectName(u"widget_2")
self.widget_2.setGeometry(QRect(280, 30, 281, 131))
self.verticalLayoutWidget_4 = QWidget(self.widget_2)
self.verticalLayoutWidget_4.setObjectName(u"verticalLayoutWidget_4")
self.verticalLayoutWidget_4.setGeometry(QRect(10, 0, 271, 131))
self.verticalLayout_4 = QVBoxLayout(self.verticalLayoutWidget_4)
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
self.label_9 = QLabel(self.verticalLayoutWidget_4)
self.label_9.setObjectName(u"label_9")
self.verticalLayout_4.addWidget(self.label_9)
self.label_8 = QLabel(self.verticalLayoutWidget_4)
self.label_8.setObjectName(u"label_8")
self.verticalLayout_4.addWidget(self.label_8)
self.label_10 = QLabel(self.verticalLayoutWidget_4)
self.label_10.setObjectName(u"label_10")
self.verticalLayout_4.addWidget(self.label_10)
self.label_12 = QLabel(self.verticalLayoutWidget_4)
self.label_12.setObjectName(u"label_12")
self.verticalLayout_4.addWidget(self.label_12)
self.label_13 = QLabel(self.verticalLayoutWidget_4)
self.label_13.setObjectName(u"label_13")
self.verticalLayout_4.addWidget(self.label_13)
self.label_11 = QLabel(self.verticalLayoutWidget_4)
self.label_11.setObjectName(u"label_11")
self.verticalLayout_4.addWidget(self.label_11)
self.widget_3 = QWidget(self.tab_2)
self.widget_3.setObjectName(u"widget_3")
self.widget_3.setGeometry(QRect(10, 160, 781, 191))
self.verticalLayoutWidget_5 = QWidget(self.widget_3)
self.verticalLayoutWidget_5.setObjectName(u"verticalLayoutWidget_5")
self.verticalLayoutWidget_5.setGeometry(QRect(0, 0, 781, 191))
self.verticalLayout_5 = QVBoxLayout(self.verticalLayoutWidget_5)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.label_14 = QLabel(self.verticalLayoutWidget_5)
self.label_14.setObjectName(u"label_14")
self.horizontalLayout.addWidget(self.label_14)
self.comboBox = QComboBox(self.verticalLayoutWidget_5)
self.comboBox.setObjectName(u"comboBox")
self.horizontalLayout.addWidget(self.comboBox)
self.toolButton = QToolButton(self.verticalLayoutWidget_5)
self.toolButton.setObjectName(u"toolButton")
self.horizontalLayout.addWidget(self.toolButton)
self.verticalLayout_5.addLayout(self.horizontalLayout)
self.horizontalLayout_5 = QHBoxLayout()
self.horizontalLayout_5.setObjectName(u"horizontalLayout_5")
self.horizontalLayout_4 = QHBoxLayout()
self.horizontalLayout_4.setObjectName(u"horizontalLayout_4")
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.label_15 = QLabel(self.verticalLayoutWidget_5)
self.label_15.setObjectName(u"label_15")
self.horizontalLayout_2.addWidget(self.label_15)
self.horizontalSlider = QSlider(self.verticalLayoutWidget_5)
self.horizontalSlider.setObjectName(u"horizontalSlider")
self.horizontalSlider.setOrientation(Qt.Horizontal)
self.horizontalLayout_2.addWidget(self.horizontalSlider)
self.horizontalLayout_4.addLayout(self.horizontalLayout_2)
self.label_17 = QLabel(self.verticalLayoutWidget_5)
self.label_17.setObjectName(u"label_17")
self.horizontalLayout_4.addWidget(self.label_17)
self.horizontalSlider_3 = QSlider(self.verticalLayoutWidget_5)
self.horizontalSlider_3.setObjectName(u"horizontalSlider_3")
self.horizontalSlider_3.setOrientation(Qt.Horizontal)
self.horizontalLayout_4.addWidget(self.horizontalSlider_3)
self.horizontalLayout_5.addLayout(self.horizontalLayout_4)
self.horizontalLayout_9 = QHBoxLayout()
self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
self.label_21 = QLabel(self.verticalLayoutWidget_5)
self.label_21.setObjectName(u"label_21")
self.horizontalLayout_9.addWidget(self.label_21)
self.spinBox = QSpinBox(self.verticalLayoutWidget_5)
self.spinBox.setObjectName(u"spinBox")
self.horizontalLayout_9.addWidget(self.spinBox)
self.horizontalLayout_5.addLayout(self.horizontalLayout_9)
self.verticalLayout_5.addLayout(self.horizontalLayout_5)
self.horizontalLayout_16 = QHBoxLayout()
self.horizontalLayout_16.setObjectName(u"horizontalLayout_16")
self.horizontalLayout_13 = QHBoxLayout()
self.horizontalLayout_13.setObjectName(u"horizontalLayout_13")
self.label_24 = QLabel(self.verticalLayoutWidget_5)
self.label_24.setObjectName(u"label_24")
self.horizontalLayout_13.addWidget(self.label_24)
self.comboBox_3 = QComboBox(self.verticalLayoutWidget_5)
self.comboBox_3.setObjectName(u"comboBox_3")
self.horizontalLayout_13.addWidget(self.comboBox_3)
self.horizontalLayout_6 = QHBoxLayout()
self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
self.label_18 = QLabel(self.verticalLayoutWidget_5)
self.label_18.setObjectName(u"label_18")
self.horizontalLayout_6.addWidget(self.label_18)
self.textEdit = QTextEdit(self.verticalLayoutWidget_5)
self.textEdit.setObjectName(u"textEdit")
self.textEdit.setMaximumSize(QSize(16777215, 22))
self.horizontalLayout_6.addWidget(self.textEdit)
self.horizontalLayout_8 = QHBoxLayout()
self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
self.label_20 = QLabel(self.verticalLayoutWidget_5)
self.label_20.setObjectName(u"label_20")
self.label_20.setMaximumSize(QSize(16777215, 22))
self.horizontalLayout_8.addWidget(self.label_20)
self.textEdit_2 = QTextEdit(self.verticalLayoutWidget_5)
self.textEdit_2.setObjectName(u"textEdit_2")
self.textEdit_2.setMaximumSize(QSize(16777215, 22))
self.horizontalLayout_8.addWidget(self.textEdit_2)
self.horizontalLayout_6.addLayout(self.horizontalLayout_8)
self.horizontalLayout_13.addLayout(self.horizontalLayout_6)
self.horizontalLayout_16.addLayout(self.horizontalLayout_13)
self.verticalLayout_5.addLayout(self.horizontalLayout_16)
self.horizontalLayout_7 = QHBoxLayout()
self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
self.label_19 = QLabel(self.verticalLayoutWidget_5)
self.label_19.setObjectName(u"label_19")
self.label_19.setMaximumSize(QSize(16777215, 22))
self.horizontalLayout_7.addWidget(self.label_19)
self.textEdit1 = QTextEdit(self.verticalLayoutWidget_5)
self.textEdit1.setObjectName(u"textEdit1")
self.textEdit1.setMaximumSize(QSize(16777215, 22))
self.horizontalLayout_7.addWidget(self.textEdit1)
self.horizontalLayout_11 = QHBoxLayout()
self.horizontalLayout_11.setObjectName(u"horizontalLayout_11")
self.checkBox_2 = QCheckBox(self.verticalLayoutWidget_5)
self.checkBox_2.setObjectName(u"checkBox_2")
self.horizontalLayout_11.addWidget(self.checkBox_2)
self.checkBox = QCheckBox(self.verticalLayoutWidget_5)
self.checkBox.setObjectName(u"checkBox")
self.horizontalLayout_11.addWidget(self.checkBox)
self.label_22 = QLabel(self.verticalLayoutWidget_5)
self.label_22.setObjectName(u"label_22")
self.horizontalLayout_11.addWidget(self.label_22)
self.textEdit_3 = QTextEdit(self.verticalLayoutWidget_5)
self.textEdit_3.setObjectName(u"textEdit_3")
self.textEdit_3.setMaximumSize(QSize(16777215, 22))
self.horizontalLayout_11.addWidget(self.textEdit_3)
self.horizontalLayout_7.addLayout(self.horizontalLayout_11)
self.verticalLayout_5.addLayout(self.horizontalLayout_7)
self.horizontalLayout_18 = QHBoxLayout()
self.horizontalLayout_18.setObjectName(u"horizontalLayout_18")
self.verticalLayout_5.addLayout(self.horizontalLayout_18)
self.horizontalLayout_12 = QHBoxLayout()
self.horizontalLayout_12.setObjectName(u"horizontalLayout_12")
self.label_23 = QLabel(self.verticalLayoutWidget_5)
self.label_23.setObjectName(u"label_23")
self.label_23.setMaximumSize(QSize(120, 16777215))
self.horizontalLayout_12.addWidget(self.label_23)
self.comboBox_2 = QComboBox(self.verticalLayoutWidget_5)
self.comboBox_2.setObjectName(u"comboBox_2")
self.comboBox_2.setMaximumSize(QSize(200, 16777215))
self.horizontalLayout_12.addWidget(self.comboBox_2)
self.horizontalLayout_14 = QHBoxLayout()
self.horizontalLayout_14.setObjectName(u"horizontalLayout_14")
self.label_25 = QLabel(self.verticalLayoutWidget_5)
self.label_25.setObjectName(u"label_25")
self.horizontalLayout_14.addWidget(self.label_25)
self.comboBox_4 = QComboBox(self.verticalLayoutWidget_5)
self.comboBox_4.setObjectName(u"comboBox_4")
self.horizontalLayout_14.addWidget(self.comboBox_4)
self.horizontalLayout_12.addLayout(self.horizontalLayout_14)
self.verticalLayout_5.addLayout(self.horizontalLayout_12)
self.horizontalLayout_15 = QHBoxLayout()
self.horizontalLayout_15.setObjectName(u"horizontalLayout_15")
self.label_26 = QLabel(self.verticalLayoutWidget_5)
self.label_26.setObjectName(u"label_26")
self.horizontalLayout_15.addWidget(self.label_26)
self.comboBox_5 = QComboBox(self.verticalLayoutWidget_5)
self.comboBox_5.setObjectName(u"comboBox_5")
self.horizontalLayout_15.addWidget(self.comboBox_5)
self.verticalLayout_5.addLayout(self.horizontalLayout_15)
self.tabO.addTab(self.tab_2, "")
self.tab_3 = QWidget()
self.tab_3.setObjectName(u"tab_3")
self.tabO.addTab(self.tab_3, "")
self.tab_4 = QWidget()
self.tab_4.setObjectName(u"tab_4")
self.tabO.addTab(self.tab_4, "")
self.verticalLayout.addWidget(self.tabO)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QMenuBar(MainWindow)
self.menubar.setObjectName(u"menubar")
self.menubar.setGeometry(QRect(0, 0, 800, 26))
self.menu = QMenu(self.menubar)
self.menu.setObjectName(u"menu")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QStatusBar(MainWindow)
self.statusbar.setObjectName(u"statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar.addAction(self.menu.menuAction())
self.menu.addAction(self.action)
self.menu.addAction(self.action_Input)
self.retranslateUi(MainWindow)
self.tabO.setCurrentIndex(1)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(
QCoreApplication.translate(
"MainWindow", u"MainWindow", None))
self.action.setText(
QCoreApplication.translate(
"MainWindow",
u"\u6253\u5f00 Open",
None))
self.action_Input.setText(
QCoreApplication.translate(
"MainWindow",
u"\u5bfc\u5165 Input",
None))
self.tabO.setTabText(
self.tabO.indexOf(
self.tab), QCoreApplication.translate(
"MainWindow", u"Tab 1", None))
self.label.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_2.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_4.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_5.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_7.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_6.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_3.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_9.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_8.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_10.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_12.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_13.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_11.setText(
QCoreApplication.translate(
"MainWindow", u"TextLabel", None))
self.label_14.setText(
QCoreApplication.translate(
"MainWindow",
u"\u9ed8\u8ba4\u4fdd\u5b58\u8def\u5f84\uff1a",
None))
self.toolButton.setText(
QCoreApplication.translate(
"MainWindow", u"...", None))
self.label_15.setText(
QCoreApplication.translate(
"MainWindow",
u"\u901f\u5ea6\u500d\u7387",
None))
self.label_17.setText(
QCoreApplication.translate(
"MainWindow",
u"\u97f3\u91cf\u500d\u7387",
None))
self.label_21.setText(
QCoreApplication.translate(
"MainWindow",
u"\u6700\u5927\u6307\u4ee4\u751f\u6210\u9ad8\u5ea6",
None))
self.label_24.setText(
QCoreApplication.translate(
"MainWindow",
u"\u9009\u62e9\u5668\u6a21\u5f0f",
None))
self.label_18.setText(
QCoreApplication.translate(
"MainWindow",
u"\u8ba1\u5206\u677f\u540d\u79f0",
None))
self.label_20.setText(
QCoreApplication.translate(
"MainWindow",
u"\u73a9\u5bb6\u9009\u62e9\u5668",
None))
self.label_19.setText(
QCoreApplication.translate(
"MainWindow",
u"bdx\u4f5c\u8005\u540d\u79f0",
None))
self.checkBox_2.setText(
QCoreApplication.translate(
"MainWindow",
u"\u662f\u5426\u542f\u7528\u8fdb\u5ea6\u6761",
None))
self.checkBox.setText(
QCoreApplication.translate(
"MainWindow",
u"\u662f\u5426\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761",
None))
self.label_22.setText(
QCoreApplication.translate(
"MainWindow",
u"\u81ea\u5b9a\u4e49\u8fdb\u5ea6\u6761\u5185\u5bb9\uff1a",
None))
self.label_23.setText(
QCoreApplication.translate(
"MainWindow",
u"\u9009\u62e9\u547d\u4ee4\u683c\u5f0f\u7248\u672c",
None))
self.label_25.setText(
QCoreApplication.translate(
"MainWindow",
u"\u9009\u62e9\u8f6c\u6362\u7b97\u6cd5\u7248\u672c",
None))
self.label_26.setText(
QCoreApplication.translate(
"MainWindow",
u"\u9009\u62e9\u5bfc\u51fa\u6a21\u5f0f",
None))
self.tabO.setTabText(
self.tabO.indexOf(
self.tab_2), QCoreApplication.translate(
"MainWindow", u"Tab 2", None))
self.tabO.setTabText(
self.tabO.indexOf(
self.tab_3), QCoreApplication.translate(
"MainWindow", u"\u9875", None))
self.tabO.setTabText(
self.tabO.indexOf(
self.tab_4), QCoreApplication.translate(
"MainWindow", u"\u9875", None))
self.menu.setTitle(
QCoreApplication.translate(
"MainWindow",
u"\u6587\u4ef6",
None))
# retranslateUi
# Error: PySide6-Pkg.ui: Warning: The name 'textEdit' (QTextEdit) is already in use, defaulting to 'textEdit1'.
#
#
# while executing
# 'C:\Users\lc\AppData\Roaming\Python\Python39\site-packages\PySide6\uic
# -g python PySide6-Pkg.ui'
if __name__ == "__main__":
import sys
from PySide6 import QtWidgets
app = QtWidgets.QApplication(sys.argv) # 创建一个QApplication也就是你要开发的软件app
MainWindow = QtWidgets.QMainWindow() # 创建一个QMainWindow用来装载你需要的各种组件、控件
# MainWindow = QtWidgets.QWidget() # 创建一个QMainWindow用来装载你需要的各种组件、控件
ui = Ui_MainWindow() # ui是你创建的ui类的实例化对象
ui.setupUi(MainWindow) # 执行类中的setupUi方法方法的参数是第二步中创建的QMainWindow
MainWindow.show() # 执行QMainWindow的show()方法显示这个QMainWindow
sys.exit(app.exec_()) # 使用exit()或者点击关闭按钮退出QApplication