加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mainwindow.py 32.74 KB
一键复制 编辑 原始数据 按行查看 历史
Nagisa 提交于 2023-10-07 17:22 . 修复部分问题。
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'mainwindow.ui'
##
## Created by: Qt User Interface Compiler version 6.3.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 (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractItemView, QApplication, QFrame, QHBoxLayout,
QLabel, QLineEdit, QListWidget, QListWidgetItem,
QMainWindow, QPushButton, QSizePolicy, QSlider,
QSpacerItem, QVBoxLayout, QWidget)
import resource_rc
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
if not MainWindow.objectName():
MainWindow.setObjectName(u"MainWindow")
MainWindow.resize(750, 379)
icon = QIcon()
icon.addFile(u":/images/images/music.png", QSize(), QIcon.Normal, QIcon.Off)
MainWindow.setWindowIcon(icon)
self.centralwidget = QWidget(MainWindow)
self.centralwidget.setObjectName(u"centralwidget")
self.horizontalLayout_9 = QHBoxLayout(self.centralwidget)
self.horizontalLayout_9.setSpacing(0)
self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
self.horizontalLayout_9.setContentsMargins(5, 5, 5, 5)
self.widget = QWidget(self.centralwidget)
self.widget.setObjectName(u"widget")
self.widget.setFocusPolicy(Qt.StrongFocus)
self.widget.setStyleSheet(u"QWidget#widget{\n"
" background:rgb(255, 250, 232);\n"
" border-top-right-radius:10px;\n"
" border-bottom-right-radius:10px;\n"
" border-top-left-radius:10px;\n"
" border-bottom-left-radius:10px;\n"
"}\n"
"\n"
"QListWidget{\n"
" font: 9pt \"LXGW WenKai\";\n"
" background:rgb(255, 250, 232);\n"
"}\n"
"\n"
"QScrollBar:vertical{\n"
" width:8px;\n"
" border:none;\n"
" background:rgba(0,0,0,0%);\n"
" margin:0px,0px,0px,0px;\n"
" padding-top:9px;\n"
" padding-bottom:9px;\n"
"}\n"
"\n"
"QScrollBar::handle:vertical{\n"
" width:8px;\n"
" background:rgba(0,0,0,25%);\n"
" border-radius:4px;\n"
" min-height:20;\n"
"}\n"
"\n"
"QScrollBar::handle:vertical:hover\n"
"{\n"
" width:8px;\n"
" background:rgba(0,0,0,50%);\n"
" border-radius:4px;\n"
" min-height:20;\n"
"}\n"
"QScrollBar::add-page:vertical{\n"
" background-color:rgb(255, 250, 232);\n"
" height: 0px;\n"
"}\n"
"QScrollBar::sub-page:vertical{\n"
" background-color:rgb(255, 250, 232);\n"
"}\n"
"QScrollBar::add-lin"
"e:vertical\n"
"{\n"
" height:9px;width:8px;\n"
" image: url(:/icon/images/arrow-down-bold.png);\n"
" subcontrol-position:bottom;\n"
"}\n"
"QScrollBar::sub-line:vertical\n"
"{\n"
" height:9px;width:8px;\n"
" image: url(:/icon/images/arrow-up-bold.png);\n"
" subcontrol-position:top;\n"
"}")
self.verticalLayout_5 = QVBoxLayout(self.widget)
self.verticalLayout_5.setSpacing(0)
self.verticalLayout_5.setObjectName(u"verticalLayout_5")
self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
self.widget_top = QWidget(self.widget)
self.widget_top.setObjectName(u"widget_top")
self.widget_top.setMinimumSize(QSize(0, 28))
self.widget_top.setMaximumSize(QSize(16777215, 28))
self.widget_top.setMouseTracking(False)
self.widget_top.setStyleSheet(u"QWidget#widget_top{\n"
" background:rgb(245, 36, 67);\n"
" border-top-right-radius:10px;\n"
" border-top-left-radius:10px;\n"
"}")
self.horizontalLayout_3 = QHBoxLayout(self.widget_top)
self.horizontalLayout_3.setSpacing(7)
self.horizontalLayout_3.setObjectName(u"horizontalLayout_3")
self.horizontalLayout_3.setContentsMargins(10, 0, 10, 0)
self.horizontalLayout_lights_btn = QHBoxLayout()
self.horizontalLayout_lights_btn.setSpacing(6)
self.horizontalLayout_lights_btn.setObjectName(u"horizontalLayout_lights_btn")
self.pushButton_red = QPushButton(self.widget_top)
self.pushButton_red.setObjectName(u"pushButton_red")
self.pushButton_red.setMinimumSize(QSize(12, 12))
self.pushButton_red.setMaximumSize(QSize(12, 12))
self.pushButton_red.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_red.setFocusPolicy(Qt.NoFocus)
self.pushButton_red.setStyleSheet(u"QPushButton{background:#F76677;border-radius:6px;}QPushButton:hover{background:red;}")
self.horizontalLayout_lights_btn.addWidget(self.pushButton_red)
self.pushButton_yellow = QPushButton(self.widget_top)
self.pushButton_yellow.setObjectName(u"pushButton_yellow")
self.pushButton_yellow.setMinimumSize(QSize(12, 12))
self.pushButton_yellow.setMaximumSize(QSize(12, 12))
self.pushButton_yellow.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_yellow.setFocusPolicy(Qt.NoFocus)
self.pushButton_yellow.setStyleSheet(u"QPushButton{background:#F7D674;border-radius:6px;}\n"
"QPushButton:hover{background:yellow;}")
self.horizontalLayout_lights_btn.addWidget(self.pushButton_yellow)
self.pushButton_green = QPushButton(self.widget_top)
self.pushButton_green.setObjectName(u"pushButton_green")
self.pushButton_green.setMinimumSize(QSize(12, 12))
self.pushButton_green.setMaximumSize(QSize(12, 12))
self.pushButton_green.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_green.setFocusPolicy(Qt.NoFocus)
self.pushButton_green.setStyleSheet(u"QPushButton{background:#6DDF6D;border-radius:6px;}QPushButton:hover{background:green;}")
self.horizontalLayout_lights_btn.addWidget(self.pushButton_green)
self.horizontalLayout_3.addLayout(self.horizontalLayout_lights_btn)
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum)
self.horizontalLayout_3.addItem(self.horizontalSpacer)
self.pushButton_update = QPushButton(self.widget_top)
self.pushButton_update.setObjectName(u"pushButton_update")
sizePolicy = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.pushButton_update.sizePolicy().hasHeightForWidth())
self.pushButton_update.setSizePolicy(sizePolicy)
self.pushButton_update.setMinimumSize(QSize(50, 0))
self.pushButton_update.setMaximumSize(QSize(50, 16777215))
self.pushButton_update.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_update.setFocusPolicy(Qt.NoFocus)
self.pushButton_update.setStyleSheet(u"QPushButton{\n"
" background:rgb(245, 36, 67);\n"
" border-radius:8px;\n"
" font: 9pt \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
" color: #ff7043;\n"
"}\n"
"QPushButton:hover{\n"
" background:#e60039;\n"
"}\n"
"")
self.horizontalLayout_3.addWidget(self.pushButton_update)
self.verticalLayout_5.addWidget(self.widget_top)
self.horizontalLayout_body = QHBoxLayout()
self.horizontalLayout_body.setSpacing(8)
self.horizontalLayout_body.setObjectName(u"horizontalLayout_body")
self.horizontalLayout_body.setContentsMargins(10, 10, 10, 10)
self.verticalLayout_musiclist = QVBoxLayout()
self.verticalLayout_musiclist.setSpacing(4)
self.verticalLayout_musiclist.setObjectName(u"verticalLayout_musiclist")
self.horizontalLayout_save_btn = QHBoxLayout()
self.horizontalLayout_save_btn.setObjectName(u"horizontalLayout_save_btn")
self.label_list_name = QLabel(self.widget)
self.label_list_name.setObjectName(u"label_list_name")
sizePolicy1 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Preferred)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.label_list_name.sizePolicy().hasHeightForWidth())
self.label_list_name.setSizePolicy(sizePolicy1)
self.label_list_name.setStyleSheet(u"font: 10pt \"LXGW WenKai\";")
self.horizontalLayout_save_btn.addWidget(self.label_list_name)
self.pushButton_save_to_playlist = QPushButton(self.widget)
self.pushButton_save_to_playlist.setObjectName(u"pushButton_save_to_playlist")
sizePolicy2 = QSizePolicy(QSizePolicy.Fixed, QSizePolicy.Fixed)
sizePolicy2.setHorizontalStretch(0)
sizePolicy2.setVerticalStretch(0)
sizePolicy2.setHeightForWidth(self.pushButton_save_to_playlist.sizePolicy().hasHeightForWidth())
self.pushButton_save_to_playlist.setSizePolicy(sizePolicy2)
self.pushButton_save_to_playlist.setMinimumSize(QSize(40, 15))
self.pushButton_save_to_playlist.setMaximumSize(QSize(40, 15))
self.pushButton_save_to_playlist.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_save_to_playlist.setFocusPolicy(Qt.NoFocus)
self.pushButton_save_to_playlist.setStyleSheet(u"QPushButton{\n"
" background:#ffe7ba;\n"
" border-radius:0px;\n"
" font: 9pt \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
" color: rgb(255, 250, 232);\n"
"}\n"
"QPushButton:hover{\n"
" background:#ffa940;\n"
"}\n"
"")
self.horizontalLayout_save_btn.addWidget(self.pushButton_save_to_playlist)
self.horizontalLayout_save_btn.setStretch(0, 8)
self.horizontalLayout_save_btn.setStretch(1, 4)
self.verticalLayout_musiclist.addLayout(self.horizontalLayout_save_btn)
self.lineEdit = QLineEdit(self.widget)
self.lineEdit.setObjectName(u"lineEdit")
sizePolicy3 = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
sizePolicy3.setHorizontalStretch(0)
sizePolicy3.setVerticalStretch(0)
sizePolicy3.setHeightForWidth(self.lineEdit.sizePolicy().hasHeightForWidth())
self.lineEdit.setSizePolicy(sizePolicy3)
self.lineEdit.setMaximumSize(QSize(16777215, 20))
self.lineEdit.setFocusPolicy(Qt.ClickFocus)
self.lineEdit.setStyleSheet(u"QLineEdit{\n"
" border:1px groove lightgray;\n"
" border-radius:2px;\n"
" font: 9pt \"LXGW WenKai\";\n"
"}")
self.verticalLayout_musiclist.addWidget(self.lineEdit)
self.listWidget = QListWidget(self.widget)
self.listWidget.setObjectName(u"listWidget")
self.listWidget.setFocusPolicy(Qt.NoFocus)
self.listWidget.setStyleSheet(u"QListView::item:hover {\n"
" background-color: #fff7e6;\n"
" border-left: 3px solid #ff441a;\n"
"}\n"
"QListView::item:selected {\n"
" background-color: #fff3e0;\n"
" border-left: 3px solid #c92a2a;\n"
"}\n"
"QListView::item {\n"
" border-bottom: 1px solid #e4e4e4;\n"
"}")
self.listWidget.setFrameShape(QFrame.NoFrame)
self.listWidget.setFrameShadow(QFrame.Sunken)
self.listWidget.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.listWidget.setHorizontalScrollMode(QAbstractItemView.ScrollPerItem)
self.verticalLayout_musiclist.addWidget(self.listWidget)
self.pushButton_song_find = QPushButton(self.widget)
self.pushButton_song_find.setObjectName(u"pushButton_song_find")
sizePolicy.setHeightForWidth(self.pushButton_song_find.sizePolicy().hasHeightForWidth())
self.pushButton_song_find.setSizePolicy(sizePolicy)
self.pushButton_song_find.setMaximumSize(QSize(16777215, 15))
self.pushButton_song_find.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_song_find.setFocusPolicy(Qt.NoFocus)
self.pushButton_song_find.setStyleSheet(u"QPushButton{\n"
" border:none;\n"
" image: url(:/icon/images/arrow-up-bold.png);\n"
"}")
self.pushButton_song_find.setFlat(True)
self.verticalLayout_musiclist.addWidget(self.pushButton_song_find)
self.verticalLayout_musiclist.setStretch(0, 1)
self.verticalLayout_musiclist.setStretch(1, 1)
self.verticalLayout_musiclist.setStretch(2, 10)
self.verticalLayout_musiclist.setStretch(3, 1)
self.horizontalLayout_body.addLayout(self.verticalLayout_musiclist)
self.verticalLayout_lrc = QVBoxLayout()
self.verticalLayout_lrc.setObjectName(u"verticalLayout_lrc")
self.label_name = QLabel(self.widget)
self.label_name.setObjectName(u"label_name")
self.label_name.setStyleSheet(u"font: 13pt \"\u5fae\u8f6f\u96c5\u9ed1\";")
self.verticalLayout_lrc.addWidget(self.label_name)
self.listWidget_2 = QListWidget(self.widget)
QListWidgetItem(self.listWidget_2)
QListWidgetItem(self.listWidget_2)
QListWidgetItem(self.listWidget_2)
QListWidgetItem(self.listWidget_2)
QListWidgetItem(self.listWidget_2)
font = QFont()
font.setBold(False)
__qlistwidgetitem = QListWidgetItem(self.listWidget_2)
__qlistwidgetitem.setTextAlignment(Qt.AlignCenter);
__qlistwidgetitem.setFont(font);
__qlistwidgetitem1 = QListWidgetItem(self.listWidget_2)
__qlistwidgetitem1.setTextAlignment(Qt.AlignCenter);
QListWidgetItem(self.listWidget_2)
QListWidgetItem(self.listWidget_2)
QListWidgetItem(self.listWidget_2)
QListWidgetItem(self.listWidget_2)
QListWidgetItem(self.listWidget_2)
self.listWidget_2.setObjectName(u"listWidget_2")
self.listWidget_2.setFocusPolicy(Qt.NoFocus)
self.listWidget_2.setStyleSheet(u"QListView::item:hover {\n"
" background-color: #fff7e6;\n"
"}\n"
"QListView::item:selected {\n"
" background-color: #fff3e0;\n"
"}")
self.listWidget_2.setFrameShape(QFrame.NoFrame)
self.verticalLayout_lrc.addWidget(self.listWidget_2)
self.horizontalLayout_body.addLayout(self.verticalLayout_lrc)
self.widget_info = QWidget(self.widget)
self.widget_info.setObjectName(u"widget_info")
self.verticalLayout_4 = QVBoxLayout(self.widget_info)
self.verticalLayout_4.setSpacing(2)
self.verticalLayout_4.setObjectName(u"verticalLayout_4")
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_pic = QHBoxLayout()
self.horizontalLayout_pic.setObjectName(u"horizontalLayout_pic")
self.horizontalLayout_pic.setContentsMargins(5, 5, 5, 5)
self.widget_pic = QWidget(self.widget_info)
self.widget_pic.setObjectName(u"widget_pic")
self.widget_pic.setMinimumSize(QSize(150, 150))
self.widget_pic.setMaximumSize(QSize(150, 150))
self.label_pic_hires = QLabel(self.widget_pic)
self.label_pic_hires.setObjectName(u"label_pic_hires")
self.label_pic_hires.setGeometry(QRect(5, 125, 20, 20))
self.label_pic_hires.setMinimumSize(QSize(20, 20))
self.label_pic_hires.setMaximumSize(QSize(20, 20))
self.label_pic_hires.setFrameShape(QFrame.NoFrame)
self.label_pic_hires.setPixmap(QPixmap(u":/images/images/hi-res.jpg"))
self.label_pic_hires.setScaledContents(True)
self.label_pic = QLabel(self.widget_pic)
self.label_pic.setObjectName(u"label_pic")
self.label_pic.setGeometry(QRect(0, 0, 150, 150))
self.label_pic.setMinimumSize(QSize(150, 150))
self.label_pic.setMaximumSize(QSize(150, 150))
self.label_pic.setFrameShape(QFrame.NoFrame)
self.label_pic.setPixmap(QPixmap(u":/images/images/Nagisa.png"))
self.label_pic.setScaledContents(True)
self.label_pic.raise_()
self.label_pic_hires.raise_()
self.horizontalLayout_pic.addWidget(self.widget_pic)
self.verticalLayout_4.addLayout(self.horizontalLayout_pic)
self.label_info = QLabel(self.widget_info)
self.label_info.setObjectName(u"label_info")
self.label_info.setStyleSheet(u"font: 8pt \"\u5fae\u8f6f\u96c5\u9ed1\";")
self.label_info.setAlignment(Qt.AlignCenter)
self.verticalLayout_4.addWidget(self.label_info)
self.horizontalLayout = QHBoxLayout()
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.listWidget_3 = QListWidget(self.widget_info)
QListWidgetItem(self.listWidget_3)
QListWidgetItem(self.listWidget_3)
QListWidgetItem(self.listWidget_3)
QListWidgetItem(self.listWidget_3)
QListWidgetItem(self.listWidget_3)
self.listWidget_3.setObjectName(u"listWidget_3")
self.listWidget_3.setFocusPolicy(Qt.NoFocus)
self.listWidget_3.setStyleSheet(u"QListView::item:hover {\n"
" background-color: transparent;\n"
" border-left: 3px solid #ff441a;\n"
"}\n"
"QListView::item:selected {\n"
" background-color: transparent;\n"
"}")
self.listWidget_3.setFrameShape(QFrame.NoFrame)
self.listWidget_3.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.horizontalLayout.addWidget(self.listWidget_3, 0, Qt.AlignHCenter)
self.verticalLayout_4.addLayout(self.horizontalLayout)
self.horizontalLayout_body.addWidget(self.widget_info, 0, Qt.AlignVCenter)
self.widget_comment = QWidget(self.widget)
self.widget_comment.setObjectName(u"widget_comment")
self.verticalLayout_3 = QVBoxLayout(self.widget_comment)
self.verticalLayout_3.setObjectName(u"verticalLayout_3")
self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
self.label_hot_comment = QLabel(self.widget_comment)
self.label_hot_comment.setObjectName(u"label_hot_comment")
self.label_hot_comment.setStyleSheet(u"font: 10pt \"LXGW WenKai\";")
self.verticalLayout_3.addWidget(self.label_hot_comment)
self.listWidget_comment = QListWidget(self.widget_comment)
self.listWidget_comment.setObjectName(u"listWidget_comment")
self.listWidget_comment.setFocusPolicy(Qt.NoFocus)
self.listWidget_comment.setStyleSheet(u"QListView::item:hover {\n"
" background-color: #fff7e6;\n"
"}\n"
"QListView::item:selected {\n"
" background-color: #fff3e0;\n"
"}\n"
"QListWidget{\n"
" font: 8pt \"\u971e\u9e5c\u6587\u6977\";\n"
" background:rgb(255, 250, 232); \n"
"}")
self.listWidget_comment.setFrameShape(QFrame.NoFrame)
self.listWidget_comment.setFrameShadow(QFrame.Sunken)
self.listWidget_comment.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
self.listWidget_comment.setHorizontalScrollMode(QAbstractItemView.ScrollPerItem)
self.verticalLayout_3.addWidget(self.listWidget_comment)
self.horizontalLayout_body.addWidget(self.widget_comment)
self.horizontalLayout_body.setStretch(0, 2)
self.horizontalLayout_body.setStretch(1, 4)
self.horizontalLayout_body.setStretch(2, 2)
self.horizontalLayout_body.setStretch(3, 2)
self.verticalLayout_5.addLayout(self.horizontalLayout_body)
self.widget_bottom = QWidget(self.widget)
self.widget_bottom.setObjectName(u"widget_bottom")
self.widget_bottom.setMinimumSize(QSize(0, 45))
self.widget_bottom.setMaximumSize(QSize(16777215, 45))
self.widget_bottom.setStyleSheet(u"QWidget#widget_bottom{\n"
" background:rgb(255, 255, 255);\n"
" border-bottom-right-radius:10px;\n"
" border-bottom-left-radius:10px;\n"
"}\n"
"\n"
"QPushButton{\n"
" border:none;\n"
"}")
self.horizontalLayout_6 = QHBoxLayout(self.widget_bottom)
self.horizontalLayout_6.setSpacing(10)
self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
self.horizontalLayout_6.setContentsMargins(10, 5, 10, 5)
self.horizontalLayout_left_btn = QHBoxLayout()
self.horizontalLayout_left_btn.setSpacing(8)
self.horizontalLayout_left_btn.setObjectName(u"horizontalLayout_left_btn")
self.pushButton_path = QPushButton(self.widget_bottom)
self.pushButton_path.setObjectName(u"pushButton_path")
self.pushButton_path.setMinimumSize(QSize(25, 25))
self.pushButton_path.setMaximumSize(QSize(25, 25))
self.pushButton_path.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_path.setFocusPolicy(Qt.NoFocus)
self.pushButton_path.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/folder_add.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/folder_add \u6df1\u8272.png);\n"
"}\n"
"")
self.pushButton_path.setFlat(True)
self.horizontalLayout_left_btn.addWidget(self.pushButton_path)
self.pushButton_last = QPushButton(self.widget_bottom)
self.pushButton_last.setObjectName(u"pushButton_last")
self.pushButton_last.setMinimumSize(QSize(25, 25))
self.pushButton_last.setMaximumSize(QSize(25, 25))
self.pushButton_last.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_last.setFocusPolicy(Qt.NoFocus)
self.pushButton_last.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/\u4e0a\u4e00\u66f2.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/\u4e0a\u4e00\u66f2 \u6df1\u8272.png);\n"
"}")
self.pushButton_last.setFlat(True)
self.horizontalLayout_left_btn.addWidget(self.pushButton_last)
self.pushButton_start = QPushButton(self.widget_bottom)
self.pushButton_start.setObjectName(u"pushButton_start")
self.pushButton_start.setMinimumSize(QSize(35, 35))
self.pushButton_start.setMaximumSize(QSize(35, 35))
self.pushButton_start.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_start.setFocusPolicy(Qt.NoFocus)
self.pushButton_start.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/\u6682\u505c.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/\u6682\u505c \u6df1\u8272.png);\n"
"}")
self.pushButton_start.setFlat(True)
self.horizontalLayout_left_btn.addWidget(self.pushButton_start)
self.pushButton_next = QPushButton(self.widget_bottom)
self.pushButton_next.setObjectName(u"pushButton_next")
self.pushButton_next.setMinimumSize(QSize(25, 25))
self.pushButton_next.setMaximumSize(QSize(25, 25))
self.pushButton_next.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_next.setFocusPolicy(Qt.NoFocus)
self.pushButton_next.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/\u4e0b\u4e00\u66f2.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/\u4e0b\u4e00\u66f2 \u6df1\u8272.png);\n"
"}")
self.pushButton_next.setFlat(True)
self.horizontalLayout_left_btn.addWidget(self.pushButton_next)
self.pushButton_change_sort_mode = QPushButton(self.widget_bottom)
self.pushButton_change_sort_mode.setObjectName(u"pushButton_change_sort_mode")
self.pushButton_change_sort_mode.setMinimumSize(QSize(25, 25))
self.pushButton_change_sort_mode.setMaximumSize(QSize(25, 25))
self.pushButton_change_sort_mode.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_change_sort_mode.setFocusPolicy(Qt.NoFocus)
self.pushButton_change_sort_mode.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/\u6392\u5e8f.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/\u6392\u5e8f \u6df1\u8272.png);\n"
"}")
self.pushButton_change_sort_mode.setFlat(True)
self.horizontalLayout_left_btn.addWidget(self.pushButton_change_sort_mode)
self.horizontalLayout_6.addLayout(self.horizontalLayout_left_btn)
self.label_time_start = QLabel(self.widget_bottom)
self.label_time_start.setObjectName(u"label_time_start")
self.label_time_start.setMinimumSize(QSize(0, 0))
self.label_time_start.setStyleSheet(u"font: 9pt \"LXGW WenKai\";\n"
"color: #616161;")
self.horizontalLayout_6.addWidget(self.label_time_start)
self.horizontalSlider = QSlider(self.widget_bottom)
self.horizontalSlider.setObjectName(u"horizontalSlider")
self.horizontalSlider.setCursor(QCursor(Qt.ArrowCursor))
self.horizontalSlider.setFocusPolicy(Qt.NoFocus)
self.horizontalSlider.setStyleSheet(u"QSlider::groove:horizontal {\n"
"border: 0px solid #bbb;\n"
"}\n"
" \n"
"QSlider::sub-page:horizontal {\n"
"background: #f03e3e;\n"
"border-radius: 0px;\n"
"margin-top:8px;\n"
"margin-bottom:8px;\n"
"}\n"
" \n"
"QSlider::add-page:horizontal {\n"
"background: #e4e4e4;\n"
"border: 0px solid #777;\n"
"border-radius: 2px;\n"
"margin-top:8px;\n"
"margin-bottom:8px;\n"
"}\n"
" \n"
"QSlider::handle:horizontal {\n"
"background: #f03e3e;\n"
"border: 1px solid #f03e3e;\n"
"width: 12px;\n"
"height:12px;\n"
"border-radius: 7px;\n"
"margin-top:2px;\n"
"margin-bottom:2px;\n"
"}\n"
" \n"
"QSlider::handle:horizontal:hover {\n"
"background: #c92a2a;\n"
"border: 1px solid #c92a2a;\n"
"}\n"
" \n"
"QSlider::sub-page:horizontal:disabled {\n"
"background: #bbb;\n"
"border-color: #999;\n"
"}\n"
" \n"
"QSlider::add-page:horizontal:disabled {\n"
"background: #eee;\n"
"border-color: #999;\n"
"}\n"
" \n"
"QSlider::handle:horizontal:disabled {\n"
"background: #eee;\n"
"border: 1px solid #aaa;\n"
"border-radius: 4px;\n"
"}\n"
" ")
self.horizontalSlider.setValue(0)
self.horizontalSlider.setOrientation(Qt.Horizontal)
self.horizontalLayout_6.addWidget(self.horizontalSlider)
self.label_time_end = QLabel(self.widget_bottom)
self.label_time_end.setObjectName(u"label_time_end")
self.label_time_end.setMinimumSize(QSize(0, 0))
self.label_time_end.setStyleSheet(u"font: 9pt \"LXGW WenKai\";\n"
"color: #616161;")
self.horizontalLayout_6.addWidget(self.label_time_end)
self.horizontalLayout_right_btn = QHBoxLayout()
self.horizontalLayout_right_btn.setSpacing(8)
self.horizontalLayout_right_btn.setObjectName(u"horizontalLayout_right_btn")
self.pushButton_volume = QPushButton(self.widget_bottom)
self.pushButton_volume.setObjectName(u"pushButton_volume")
self.pushButton_volume.setMinimumSize(QSize(25, 25))
self.pushButton_volume.setMaximumSize(QSize(25, 25))
self.pushButton_volume.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_volume.setFocusPolicy(Qt.NoFocus)
self.pushButton_volume.setStyleSheet(u"QPushButton{\n"
" font: 7pt \"\u5fae\u8f6f\u96c5\u9ed1\";\n"
" color: #f03e3e;\n"
" border:2px solid #f03e3e;\n"
" border-radius:5px;\n"
" margin-top:4px;\n"
" margin-bottom:4px;\n"
" margin-left:2px;\n"
" margin-right:2px;\n"
"}\n"
"QPushButton:hover{\n"
" color: #c92a2a;\n"
" border:2px solid #c92a2a;\n"
"}")
self.pushButton_volume.setFlat(True)
self.horizontalLayout_right_btn.addWidget(self.pushButton_volume)
self.pushButton_random = QPushButton(self.widget_bottom)
self.pushButton_random.setObjectName(u"pushButton_random")
self.pushButton_random.setMinimumSize(QSize(25, 25))
self.pushButton_random.setMaximumSize(QSize(25, 25))
self.pushButton_random.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_random.setFocusPolicy(Qt.NoFocus)
self.pushButton_random.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/\u5217\u8868\u5faa\u73af.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/\u5217\u8868\u5faa\u73af \u6df1\u8272.png);\n"
"}")
self.pushButton_random.setFlat(True)
self.horizontalLayout_right_btn.addWidget(self.pushButton_random)
self.pushButton_is_trans = QPushButton(self.widget_bottom)
self.pushButton_is_trans.setObjectName(u"pushButton_is_trans")
self.pushButton_is_trans.setMinimumSize(QSize(25, 25))
self.pushButton_is_trans.setMaximumSize(QSize(25, 25))
self.pushButton_is_trans.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_is_trans.setFocusPolicy(Qt.NoFocus)
self.pushButton_is_trans.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/\u7ffb\u8bd1.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/\u7ffb\u8bd1 \u6df1\u8272.png);\n"
"}")
self.pushButton_is_trans.setFlat(True)
self.horizontalLayout_right_btn.addWidget(self.pushButton_is_trans)
self.pushButton_is_online = QPushButton(self.widget_bottom)
self.pushButton_is_online.setObjectName(u"pushButton_is_online")
self.pushButton_is_online.setMinimumSize(QSize(25, 25))
self.pushButton_is_online.setMaximumSize(QSize(25, 25))
self.pushButton_is_online.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_is_online.setFocusPolicy(Qt.NoFocus)
self.pushButton_is_online.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/cloud_off.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/cloud_off \u6df1\u8272.png);\n"
"}")
self.pushButton_is_online.setFlat(True)
self.horizontalLayout_right_btn.addWidget(self.pushButton_is_online)
self.pushButton_is_comment = QPushButton(self.widget_bottom)
self.pushButton_is_comment.setObjectName(u"pushButton_is_comment")
self.pushButton_is_comment.setMinimumSize(QSize(25, 25))
self.pushButton_is_comment.setMaximumSize(QSize(25, 25))
self.pushButton_is_comment.setCursor(QCursor(Qt.PointingHandCursor))
self.pushButton_is_comment.setFocusPolicy(Qt.NoFocus)
self.pushButton_is_comment.setStyleSheet(u"QPushButton{\n"
" image: url(:/icon/images/search.png);\n"
"}\n"
"QPushButton:hover{\n"
" image: url(:/icon/images/search \u6df1\u8272.png);\n"
"}")
self.pushButton_is_comment.setFlat(True)
self.horizontalLayout_right_btn.addWidget(self.pushButton_is_comment)
self.horizontalLayout_6.addLayout(self.horizontalLayout_right_btn)
self.verticalLayout_5.addWidget(self.widget_bottom)
self.horizontalLayout_9.addWidget(self.widget)
MainWindow.setCentralWidget(self.centralwidget)
self.retranslateUi(MainWindow)
QMetaObject.connectSlotsByName(MainWindow)
# setupUi
def retranslateUi(self, MainWindow):
MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"LrcMusicPlayer", None))
self.pushButton_red.setText("")
self.pushButton_yellow.setText("")
self.pushButton_green.setText("")
self.pushButton_update.setText(QCoreApplication.translate("MainWindow", u"v0.0.0", None))
self.label_list_name.setText(QCoreApplication.translate("MainWindow", u"\u6b4c\u66f2\u5217\u8868", None))
self.pushButton_save_to_playlist.setText(QCoreApplication.translate("MainWindow", u"Save", None))
self.lineEdit.setPlaceholderText(QCoreApplication.translate("MainWindow", u"\u641c\u7d22", None))
self.pushButton_song_find.setText("")
self.label_name.setText(QCoreApplication.translate("MainWindow", u"Title", None))
__sortingEnabled = self.listWidget_2.isSortingEnabled()
self.listWidget_2.setSortingEnabled(False)
___qlistwidgetitem = self.listWidget_2.item(5)
___qlistwidgetitem.setText(QCoreApplication.translate("MainWindow", u"LrcMusicPlayer by Nagisa", None));
___qlistwidgetitem1 = self.listWidget_2.item(6)
___qlistwidgetitem1.setText(QCoreApplication.translate("MainWindow", u"2021.11.6", None));
self.listWidget_2.setSortingEnabled(__sortingEnabled)
self.label_pic_hires.setText("")
self.label_pic.setText("")
self.label_info.setText(QCoreApplication.translate("MainWindow", u"MUSIC INFO", None))
__sortingEnabled1 = self.listWidget_3.isSortingEnabled()
self.listWidget_3.setSortingEnabled(False)
___qlistwidgetitem2 = self.listWidget_3.item(0)
___qlistwidgetitem2.setText(QCoreApplication.translate("MainWindow", u"\u6807\u9898\uff1aLrcMusicPlayer", None));
___qlistwidgetitem3 = self.listWidget_3.item(1)
___qlistwidgetitem3.setText(QCoreApplication.translate("MainWindow", u"\u4f5c\u8005\uff1aNagisa", None));
___qlistwidgetitem4 = self.listWidget_3.item(2)
___qlistwidgetitem4.setText(QCoreApplication.translate("MainWindow", u"\u65e5\u671f\uff1a2021-11-6", None));
___qlistwidgetitem5 = self.listWidget_3.item(4)
___qlistwidgetitem5.setText(QCoreApplication.translate("MainWindow", u"\u70b9\u51fb\u5de6\u4e0b\u65b9\u52a0\u53f7\u8f7d\u5165\u6b4c\u66f2~", None));
self.listWidget_3.setSortingEnabled(__sortingEnabled1)
self.label_hot_comment.setText(QCoreApplication.translate("MainWindow", u"\u70ed\u95e8\u8bc4\u8bba", None))
self.pushButton_path.setText("")
self.pushButton_last.setText("")
self.pushButton_start.setText("")
self.pushButton_next.setText("")
self.pushButton_change_sort_mode.setText("")
self.label_time_start.setText(QCoreApplication.translate("MainWindow", u"00:00", None))
self.label_time_end.setText(QCoreApplication.translate("MainWindow", u"00:00", None))
self.pushButton_volume.setText(QCoreApplication.translate("MainWindow", u"66", None))
self.pushButton_random.setText("")
self.pushButton_is_trans.setText("")
self.pushButton_is_online.setText("")
self.pushButton_is_comment.setText("")
# retranslateUi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化