python3GUI--在线小说播放器By:PyQt5(附ui源码)

本文阅读 7 分钟
首页 安全分享,WEB安全 正文

本次使用PyQt5开发一款在线小说播放器,支持在线收听多个数据源的小说,支持小说检索,走起~

1.PyQt5

pyqt5是一套Python绑定Digia QT5应用的框架。它可用于Python 2和3。本教程使用Python 3。Qt库是最强大的GUI库之一。pyqt5的官方网站http://www.riverbankcomputing.co.uk/news
pyqt5做为Python的一个模块,它有620多个类和6000个函数和方法。这是一个跨平台的工具包,它可以运行在所有主要的操作系统,包括UNIX,Windows,Mac OS。pyqt5是双重许可。开发者可以在GPL和商业许可之间进行选择。

2.qtawesome

QtAwesome 是一个简单的库,可用于将Font Awesome图标添加到Qt 应用程序。
注意:虽然名称是 QtAwesome 并且目前它非常基于 Font Awesome,但您可以使用您想要的所有其他图标/字形字体。
通过添加命名图标画家,该类还可用于管理您自己的动态代码绘制图标。(翻译)

简单说,就是利用qtawesome里面的小图标组件,帮助我们可视化地设计GUI界面。

给出三个网站,可以学习一下
QtAwesome-GitHub
Font Awesome-官网
Font Awesome-中文网

3.QMediaPlayer

QMediaPlayer 类是高级媒体播放类。它可用于播放歌曲、电影和网络广播等内容。要播放的内容被指定为 QMediaContent 对象,可以将其视为附加了附加信息的主 URL 或规范 URL。当提供了一个 QMediaContent 播放可能就可以开始了。
QMediaPlayer-Qt官网
QMediaPlayer-PyQt官网

本文利用QMediaPlayer播放在线小说音频,运用其封装好的函数对播放器进行控制。

4.LAVFilters

LAV Filters是一组基于 ffmpeg 项目中的 libavformat/libavcodec 库的 directshow 分离器和音视频解码器,几乎允许在 directshow 播放器中播放任何格式的媒体文件!
LAVFilters-GitHub

考虑到小说文件格式不同,在此需要安装解码器。可以去GitHub下载,也可以去网络上搜索后下载。

1.启动

img

启动后会自动加载推荐的小说,并且显示数量,此时播放器以及右边详情页、剧集页为默认状态。

2.查看小说详情&播放小说

img

点击左侧小说列表,查看小说详情、剧集。选择双击小说剧集,播放器开始播放小说,播放模式默认为列表顺序播放,可以手动拖动播放进度条,改变当前播放进度。

3.搜索后播放

img 搜索小说后,播放小说。

4.动态演示

img 在这里放一张gif演示一下软件使用过程。(gif太小的原因是csdn限制上传图片大小,请理解!)

1.UI设计

1.小说搜索UI img 本程序UI设计并不复杂,左侧小说推荐、小说搜索Table Widget和右侧小说详情、小说剧集水平布局,最后再和下面播放器垂直布局。

2.整体流程设计

img

1.Novel_Listen.py(主程序调用)

import sys
import threading
import qtawesome
from novel_get import *
from PyQt5.QtCore import *
from base64 import b64decode
from PyQt5.QtGui import QIcon
from PyQt5.uic import loadUi
from 小说搜索UI import MainWindow
from PyQt5.QtWidgets import QTableWidgetItem
from PyQt5.QtMultimedia import QMediaPlayer, QMediaContent, QMediaPlaylist
from PyQt5.Qt import QMainWindow,QMessageBox,QApplication,QPixmap,QUrl


class Listen_Sound_Window(QMainWindow):
    load_recommend_finish_single=pyqtSignal()
    def __init__(self):
        super().__init__()
        self.ui=MainWindow()
        self.ui.setupUi(self)
        self.thread_it(self.load_recommend_novels)
        self.player_init()
        self.icon_init()
        self.ui.pushButton.clicked.connect(self.search_novels)
        self.ui.pushButton_8.clicked.connect(self.do_sq_and_zk)
        self.ui.pushButton_5.clicked.connect(lambda :self.get_appoint_audio_play_link("up"))
        self.ui.pushButton_6.clicked.connect(lambda :self.get_appoint_audio_play_link("down"))
        self.ui.label_4.setMaximumSize(QSize(300,250))#图片缩放,还有问题
        for i in range(1,8):
            exec("self.ui.tableWidget_{}.currentCellChanged.connect(self.show_novel_detail)".format(i))
        self.load_recommend_finish_single.connect(self.display_recommend)

    def icon_init(self):
        self.ui.pushButton_8.setIcon(QIcon(qtawesome.icon('fa.angle-double-down', color='black')))
        self.ui.pushButton_2.setIcon(QIcon(qtawesome.icon('fa.play', color='black')))
        self.ui.pushButton_3.setIcon(QIcon(qtawesome.icon('fa.pause', color='black')))
        self.ui.pushButton_4.setIcon(QIcon(qtawesome.icon('fa.stop', color='black')))
        self.ui.pushButton_5.setIcon(QIcon(qtawesome.icon('fa.backward', color='black')))
        self.ui.pushButton_6.setIcon(QIcon(qtawesome.icon('fa.forward', color='black')))
        self.ui.pushButton_7.setIcon(QIcon(qtawesome.icon('fa.volume-down', color='black')))
        self.default_img=b'iVBORw0KGgoAAAANSUhEUgAAAMkAAADOCAYAAACUwya9AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAEnQAABJ0Ad5mH3gAADPHSURBVHhe7d2FmuTGsgTg+/4vddDHDGt7mZnRy2Bd/dqJca6s7h7oaZip+JwWlQojKrMkTe//dQ0NDXPRRNLQsABNJA0NC9BE0tCwAE0kDQ0L0ETS0LAATSQNDQvQRNLQsABNJA0NC9BE0tCwAE0kDQ0L0ETS0LAATSQNDQvQRNLQsABNJA0NC9BE0tCwAE0kDQ0L0ETS0LAATSQNDQtw7EXy559/7uztD+77+PHjsJ2yZeHTp087e/vHMuvRMBsn2pMsItkmkJCImhjWixMrEsQ76Czu3hhvs8gOQ3L3N6GsF21NMgNIiZzv378f7N27d93bt2+7N2/eDPb69evB/vjjj7n28uXL7tWrV8M98kh+sUVo4lg/mkgKiMLMjbwRRMj+4sWL7vnz592zZ88Ge/r06Z7syZMnw9Y97pdPtQ8fPuzafj1bE9BqcOLXJIwwzPJEYdY3+1dRjEn/+PHjXavXpizp3BfBxOSdcmLKJlB1mofUveHoceJEYrY2ayd8EjIh5lgQIfUiq6SfsqSbJZZ6LdfVI6GaurZ1yXpxokSSNQaPgYCIiJCI+ejRo+7hw4fDtpK2WghebSrdLBvn7f4qpKk81ZWY1ZtYmlBWj40XScKKg5LDfciFbFkHEAfPgYQPHjzYJWRmcMQlGFvXkTuh0Tg8qh5IHu67f/9+d/fu3e7OnTvD/Y6ZaymLyTeiiIAcyyvicd6+cnk9HrCGYovCsobD49iKJOJALOsMZA4B7duGtCGjrWv2kRzBQ9A8oTKrjw1xY/FSKYNQbt++3d26dWswx/fu3dsVTgSiLrEcKz91JkQmX0JWjvL2u9hv2D+OpUjiOZApJIsQkDLH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ZB6LJJ4mWxDCKlcevBk0UUxj7SIxi9XBM1BCj6kY+yAYPy2ClFeJFOyHKO63rghqfuqfEHCKxHuGpGzWD9SV8/U3uOqP0021U8hnXVMFPiWshg1cuIPBMkhTg3tQyG8ROafKHD82rhgLeV7aWVjY1h3SEwPi19/XYtl37YsfpYvNgLpWIeib1MF+Xe+ddKxdJHWgpmDA5tleMUXCkFo+6sFqnlP51/rWPKfqM8sbpqyZwtjBUK/3fSgo2xn2/m1fxs5vbP0tLS9TUOtXy7ZPFIvqc1KxkZ4kWMagHXRGHAi6Q+ZZyOJWGWwskvHxPIzTKncQmdOsJ7wfn/ODdLti2BHHbppqO56nQhlTddLP43bup+7HHWsXicHIINnW/f0iec0aYNfyyHWK1BVT+RAF4s5b6Kv7VL65FpNHRFZtjPor8lNCWHhtB1NlTJWX+qW+DRvqScaDeVgY8JByDOW4XlHLdo3Nqs84z0qsmu9UObPwRVl2WU94XqMuznmUGmLVa7vi2cFU2VPnWtj1d2x0uNXQsAloImloWIAmkoaGBWgiaWhYgCaShoYFaCJpaFiAJpKGhgVoImloWIAmkoaGBWgiaWhYgCaShoa56Lr/BzvYldDUCSjfAAAAAElFTkSuQmCC'
        self.default_img_base64=b64decode(self.default_img)

    def do_sq_and_zk(self):
        """ 播放区,收起 展开 :return: """
        state=self.ui.frame_7.isVisible()
        self.ui.frame_7.setVisible(not state)
        if state:
            self.ui.pushButton_8.setIcon(QIcon(qtawesome.icon('fa.angle-double-up', color='black')))
            self.ui.pushButton_8.setText("展开")
        else:
            self.ui.pushButton_8.setText("收起")
            self.ui.pushButton_8.setIcon(QIcon(qtawesome.icon('fa.angle-double-down', color='black')))

    def load_recommend_novels(self):
        """ 加载推荐小说 :return: """
        self.ting_China_recommend_list=Ting_China_spider().get_recommend()
        self.youshengxiaoshuo_recommend_list=YouSheng_xiaoshuo_spider().get_recommend()
        self.tingshubao_recommend_list=Tingshu_bao_spider().get_recommend()
        self.i275_recommend_list=I275_spider().get_recommend()
        self.tingshucn_recommend_list=Tingshu_cn_spider().get_recommend()
        self.mangguoting_recommend_list=Mangguo_ting_spider().get_recommend()
        self.load_recommend_finish_single.emit()

    def display_recommend(self):
        if self.ting_China_recommend_list:
            book_num=len(self.ting_China_recommend_list)
            self.ui.groupBox.setTitle(f"听China({ book_num})")
            self.ui.tableWidget_1.setRowCount(book_num)
            for index, novel_item in enumerate(self.ting_China_recommend_list):
                novel_name = novel_item['novel_name']
                table_widget_item = QTableWidgetItem(novel_name)
                self.ui.tableWidget_1.setItem(index, 0, table_widget_item)

        if self.youshengxiaoshuo_recommend_list:
            book_num=len(self.youshengxiaoshuo_recommend_list)
            self.ui.groupBox_2.setTitle(f"有声小说({ book_num})")
            self.ui.tableWidget_2.setRowCount(book_num)
            for index,novel_item in enumerate(self.youshengxiaoshuo_recommend_list):
                novel_name=novel_item['novel_name']
                table_widget_item=QTableWidgetItem(novel_name)
                self.ui.tableWidget_2.setItem(index,0,table_widget_item)

        if self.tingshubao_recommend_list:
            book_num=len(self.tingshubao_recommend_list)
            self.ui.groupBox_3.setTitle(f"听书宝({ book_num})")
            self.ui.tableWidget_3.setRowCount(book_num)
            for index,novel_item in enumerate(self.tingshubao_recommend_list):
                novel_name=novel_item['novel_name']
                table_widget_item=QTableWidgetItem(novel_name)
                self.ui.tableWidget_3.setItem(index,0,table_widget_item)

        if self.i275_recommend_list:
            book_num=len(self.i275_recommend_list)
            self.ui.groupBox_4.setTitle(f"I2725({ book_num})")
            self.ui.tableWidget_4.setRowCount(book_num)
            for index,novel_item in enumerate(self.i275_recommend_list):
                novel_name=novel_item['novel_name']
                table_widget_item=QTableWidgetItem(novel_name)
                self.ui.tableWidget_4.setItem(index,0,table_widget_item)

        if self.tingshucn_recommend_list:
            book_num=len(self.tingshucn_recommend_list)
            self.ui.groupBox_5.setTitle(f"听书cn({ book_num})")
            self.ui.tableWidget_5.setRowCount(book_num)
            for index,novel_item in enumerate(self.tingshucn_recommend_list):
                novel_name=novel_item['novel_name']
                table_widget_item=QTableWidgetItem(novel_name)
                self.ui.tableWidget_5.setItem(index,0,table_widget_item)

        if self.mangguoting_recommend_list:
            book_num=len(self.mangguoting_recommend_list)
            self.ui.groupBox_6.setTitle(f"芒果听({ book_num})")
            self.ui.tableWidget_6.setRowCount(book_num)
            for index,novel_item in enumerate(self.mangguoting_recommend_list):
                novel_name=novel_item['novel_name']
                table_widget_item=QTableWidgetItem(novel_name)
                self.ui.tableWidget_6.setItem(index,0,table_widget_item)

    def search_novels(self):
        key_word=self.ui.lineEdit.text()
        if key_word!="":
            combobox_current_index=self.ui.comboBox.currentIndex()
            if combobox_current_index!=0:
                self.current_page=0
                self.current_keyword=key_word
                self.do_search_novels(index=combobox_current_index,key_word=key_word)
            else:
                QMessageBox.warning(self,"警告","请选择音源!")
        else:
            QMessageBox.warning(self, "警告", "关键字不能为空!")

    def get_spider(self,index):
        if index==1:
            spider=Ting_China_spider()
        elif index==2:
            spider=YouSheng_xiaoshuo_spider()
        elif index==3:
            spider=Tingshu_bao_spider()
        elif index==4:
            spider=I275_spider()
        elif index==5:
            spider=Tingshu_cn_spider()
        elif index==6:
            spider=Mangguo_ting_spider()
        return spider

    def do_search_novels(self,index,key_word):
        spider=self.get_spider(index)
        self.search_result_list=[]
        search_result = spider.do_search(key_word=key_word)
        if search_result:
            page = 2
            while True:
                self.search_result_list.extend(search_result['search_result_list'])
                if search_result['next_page_flag']==True:
                    search_result = spider.do_search(key_word=key_word,page=page)
                    if search_result:
                        self.search_result_list.extend(search_result['search_result_list'])
                        page+=1
                    else:
                        break
                else:
                    break
                if  page==6: #仅展示前5页
                    break
            novel_num=len(self.search_result_list)
            self.ui.tableWidget_7.setRowCount(novel_num)
            if novel_num==1:
                #如果只有一个搜索结果,则直接选中此单元格
                self.ui.tableWidget_7.setCurrentCell(0,0)
            self.ui.label_3.setText('<html><head/><body><p align="center">{current_status}</p></body></html>'.replace("{current_status}",f'搜索到关于<span style=" color:#55aaff;">{ self.current_keyword}</span>的小说<span style=" color:#55aaff;">{ novel_num}</span>本'))
            self.show_search_result()
        else:
            QMessageBox.information(self,"提示",f"没有搜索到关于{ self.current_keyword}的小说,请尝试更换关键字或更换音源")

    def show_search_result(self):
        """ :return: """
        for index,item in enumerate(self.search_result_list):
           new_table_widget_item=QTableWidgetItem(item['novel_name'])
           self.ui.tableWidget_7.setItem(index,0,new_table_widget_item)

    def show_novel_detail(self,row,column):
        """ 所有tablewidget :param row: :param column: :return: """
        if self.sender()==self.ui.tableWidget_1:
            spider=Ting_China_spider()
            current_sound_link=self.ting_China_recommend_list[row]['novel_link']
        elif self.sender()==self.ui.tableWidget_2:
            spider=YouSheng_xiaoshuo_spider()
            current_sound_link=self.youshengxiaoshuo_recommend_list[row]['novel_link']
        elif self.sender()==self.ui.tableWidget_3:
            spider=Tingshu_bao_spider()
            current_sound_link=self.tingshubao_recommend_list[row]['novel_link']
        elif self.sender()==self.ui.tableWidget_4:
            spider=I275_spider()
            current_sound_link=self.i275_recommend_list[row]['novel_link']
        elif self.sender()==self.ui.tableWidget_5:
            spider=Tingshu_cn_spider()
            current_sound_link=self.tingshucn_recommend_list[row]['novel_link']
        elif self.sender()==self.ui.tableWidget_6:
            spider=Mangguo_ting_spider()
            current_sound_link=self.mangguoting_recommend_list[row]['novel_link']
        elif self.sender()==self.ui.tableWidget_7:
            current_sound_link=self.search_result_list[row]['novel_link']
            index=self.ui.comboBox.currentIndex()
            spider=self.get_spider(index)
        novel_detail=spider.get_novel_detail(current_sound_link)
        self.do_show_novel_detail(novel_detail)

    def do_show_novel_detail(self,novel_detail):
        novel_cover_link=novel_detail['novel_cover']
        pix_map = QPixmap()
        if novel_cover_link=="未知":
            img_bytes=b64decode(self.default_img)
        else:
            res=Sound_Get().do_get_img_bytes(novel_cover_link)
            if res:
                header_type=res[1]
                if "html" in header_type:
                    img_bytes = self.default_img_base64
                else:
                    img_bytes=res[0]
            else:
                img_bytes = self.default_img_base64
        pix_map.loadFromData(img_bytes)
        self.ui.label_4.setPixmap(pix_map)
        self.ui.label_4.resize(200,150)
        play_list=novel_detail['play_list']
        self.__play_list=play_list
        self.current_play_novel_name=novel_detail['novel_name']
        self.ui.label_6.setText(novel_detail['novel_name'])
        self.ui.label_8.setText(novel_detail['novel_status'])
        self.ui.label_10.setText(novel_detail['novel_author'])
        self.ui.label_12.setText(novel_detail['novel_anchor'])
        self.ui.label_22.setText(novel_detail['novel_type'])
        self.ui.label_24.setText(novel_detail['novel_update_time'])
        clean_res=self.string_clean(novel_detail['novel_introduce'].strip())
        if len(clean_res)>120:
            self.ui.label_25.setText(clean_res[:120]+"......")
        else:
            self.ui.label_25.setText(clean_res)
        self.ui.label_27.setText(f"{ len(play_list)}集")
        self.ui.play_list.setRowCount(len(play_list))
        for index,item in enumerate(play_list):
            novel_name=item['play_name']
            new_item=QTableWidgetItem(novel_name)
            new_item.setToolTip(novel_name)
            self.ui.play_list.setItem(index,0,new_item)
        self.ui.play_list.verticalScrollBar().setSliderPosition(1)#将滚动条位置恢复

    def string_clean(self,raw_strings):
        reg=r"[\/\\\:\*\?\"\<\>\|\n|\t|\s]"
        clean_res=re.sub(reg,"",raw_strings)
        return clean_res

    def player_init(self):
        self.dur='' #当前播放时常
        self.cur_dur='' #总时长
        self.ui.volume_slider.setValue(100)
        self.player = QMediaPlayer(self)
        self.playlist = QMediaPlaylist(self)
        self.ui.volume_slider.setRange(0, 100)
        self.player.setPlaylist(self.playlist)
        self.ui.progress_slider.setEnabled(False)
        self.playlist.loadFailed.connect(lambda :QMessageBox.critical(self,"错误","此音频不可播放!"))
        self.ui.volume_slider.valueChanged[int].connect(lambda v :self.player.setVolume(v))
        self.player.stateChanged.connect(self.play_state_Change)
        self.player.durationChanged.connect(self.get_duration_func)
        self.player.positionChanged.connect(self.get_position_func)
        self.player.mediaStatusChanged.connect(self.player_status_chnge)
        self.player.error.connect(self.do_progress_error)
        self.ui.play_list.itemDoubleClicked.connect(self.do_play_novel)
        self.ui.progress_slider.sliderMoved.connect(self.update_position_func)
        self.ui.volume_slider.valueChanged.connect(self.volume_slider_func)
        self.ui.pushButton_2.clicked.connect(self.do_start_play)
        self.ui.pushButton_5.clicked.connect(lambda :self.playlist.previous())
        self.ui.pushButton_6.clicked.connect(lambda :self.playlist.next())
        self.ui.pushButton_3.clicked.connect(lambda :self.player.pause())
        self.ui.pushButton_4.clicked.connect(lambda :self.player.stop())
        self.ui.pushButton_7.clicked.connect(self.on_mute_clicked)

    def do_progress_error(self,error):
        if error==1:
            QMessageBox.critical(self,"错误",'请检查资源!')
        elif error==3:
            QMessageBox.critical(self,"错误",'网络错误!')
        elif error==5:
            QMessageBox.critical(self,"错误",'缺少相关服务!')
        elif error==2:
            QMessageBox.critical(self,"错误",'格式错误!')
        elif error==4:
            QMessageBox.critical(self,"错误",'访问权限错误!')

    def get_appoint_audio_play_link(self,direction):
        """ 获取指定音频播放地址,此函数用于“上一集”,“下一集”,“切换” :param index: :return: """
        if direction=='up':
            if self.current_select_row-1<=0:
                QMessageBox.warning(self,'警告','前面没有啦!')
                return
            else:
                self.current_select_row-=1
        elif direction=="down":
            if self.current_select_row+1>=len(self.__play_list):
                QMessageBox.warning(self,'警告','后面没有啦!')
                return
            else:
                self.current_select_row+=1
        real_play_link=self.get_real_play_link(self.__play_list[self.current_select_row]['play_link'])
        print(real_play_link)
        self.do_play_a_aduio(real_play_link)

    def do_play_a_aduio(self,play_link):
        """ 根据传入播放链接,播放指定音频 :param play_link: :return: """
        if play_link:
            novel = QMediaContent(QUrl(play_link))
            self.playlist.clear()
            self.playlist.addMedia(novel)
            self.playlist.setPlaybackMode(QMediaPlaylist.CurrentItemOnce)  # 当前音频播放一次
            self.ui.label_play_state.setText(
                '<html><head/><body><p>正在播放\t<span style=" color:#55aaff;">{current_state_string}</span></p></body></html>'.replace(
                    "{current_state_string}",
                    f"{ self.current_play_novel_name}\t{ self.__play_list[self.current_select_row]['play_name']}"))
            self.playlist.setCurrentIndex(0)
            self.player.play()
        else:
            QMessageBox.information(self, "提示", "音频播放失败!")

    def do_play_novel(self,begin_index):
        """ 双击剧集tablewidget触发事件 :param begin_index: :return: """
        self.current_select_row=begin_index.row()
        real_play_link=self.get_real_play_link(self.__play_list[self.current_select_row]['play_link'])
        if isinstance(real_play_link,list):
            #单独为spider2写一种获取播放链接
            real_play_link=real_play_link[self.current_select_row]
            split_list=real_play_link.split('/',3)
            suffix=split_list[-1]
            reg=r'[\u4e00-\u9fa5]+'
            #如果url包含中文,则转为urlencode
            if re.match(reg,suffix):
                real_play_link=split_list[0]+"://"+split_list[2]+"/"+quote(suffix)
            else:
                real_play_link=real_play_link
        else:
            real_play_link=real_play_link
        self.do_play_a_aduio(real_play_link)

    @pyqtSlot()
    def do_start_play(self):
        if self.playlist.currentIndex()<0:
            self.playlist.setCurrentIndex(0)
        self.player.play()

    def get_real_play_link(self,link):
        if "tingchina.com" in link:
            spider=Ting_China_spider()
        elif "m.ysxs8.com" in link:
            spider=YouSheng_xiaoshuo_spider()
        elif "m.tingshubao.com" in link:
            spider=Tingshu_bao_spider()
        elif "www.i275.com" in link:
            spider=I275_spider()
        elif "www.tingshucn.com" in link:
            spider=Tingshu_cn_spider()
        elif "www.mgting.com" in link:
            spider=Mangguo_ting_spider()
        real_play_link=spider.get_audio_play_link(link)
        if real_play_link:
            return real_play_link
        else:
            return False

    @pyqtSlot()
    def on_mute_clicked(self):
        """ 静音 :return: """
        mute=self.player.isMuted()
        self.player.setMuted(not mute)
        if mute:
            #显示音量图标
            self.ui.pushButton_7.setIcon(QIcon(qtawesome.icon('fa.volume-down', color='black')))
            self.ui.pushButton_7.setText("静音")
            self.ui.volume_slider.setValue(100)
            self.player.setVolume(100)
        else:
            #显示静音图标
            self.ui.pushButton_7.setIcon(QIcon(qtawesome.icon('fa.volume-off', color='black')))
            self.ui.pushButton_7.setText("取消静音")
            self.ui.volume_slider.setValue(0)

    def play_state_Change(self,state):
        self.ui.pushButton_2.setEnabled(state!=1)
        self.ui.pushButton_4.setEnabled(state==1)
        if state==2:
            self.ui.label_play_state.setText(
                '<html><head/><body><p>暂停播放\t<span style=" color:#55aaff;">{current_state_string}</span></p></body></html>'.replace(
                    "{current_state_string}",
                    f"{ self.current_play_novel_name}\t{ self.__play_list[self.current_select_row]['play_name']}"))
        elif state==0:
            self.ui.label_play_state.setText(
                '<html><head/><body><p>停止播放\t<span style=" color:#55aaff;">{current_state_string}</span></p></body></html>'.replace(
                    "{current_state_string}",
                    f"{ self.current_play_novel_name}\t{ self.__play_list[self.current_select_row]['play_name']}"))
        elif state==1:
            self.ui.label_play_state.setText(
                '<html><head/><body><p>正在播放\t<span style=" color:#55aaff;">{current_state_string}</span></p></body></html>'.replace(
                    "{current_state_string}",
                    f"{ self.current_play_novel_name}\t{ self.__play_list[self.current_select_row]['play_name']}"))

    def player_status_chnge(self,state):
        if state==7:
            #当前音频播放结束,state==7(EndOfMedia)
            self.get_appoint_audio_play_link("down")

    def get_duration_func(self, d):
        secs=d/1000
        mins=secs/60
        secs=secs%60
        self.dur="%d:%d"%(mins,secs)
        current_progress='{}/{}'.format(self.cur_dur,self.dur)
        self.ui.label_play_time.setText(
            '<html><head/><body><p><span style=" color:#55aaff;">{current_progress}</span></p></body></html>'.replace(
                "{current_progress}", current_progress))
        self.ui.progress_slider.setRange(0,d)
        self.ui.progress_slider.setEnabled(True)

    def get_position_func(self, p):
        if (self.ui.progress_slider.isSliderDown()):
            return
        self.ui.progress_slider.setValue(p)
        secs=p/1000
        mins=secs/60
        secs=secs%60
        self.cur_dur="%d:%d"%(mins,secs)
        current_progress='{}/{}'.format(self.cur_dur,self.dur)
        self.ui.label_play_time.setText(
            '<html><head/><body><p><span style=" color:#55aaff;">{current_progress}</span></p></body></html>'.replace(
                "{current_progress}", current_progress))

    def update_position_func(self, v):
        self.player.setPosition(v)
        secs = v / 1000
        mins = secs / 60
        secs = secs % 60
        self.cur_dur = "%d:%d" % (mins, secs)
        current_progress='{}/{}'.format(self.cur_dur,self.dur)
        self.ui.label_play_time.setText(
            '<html><head/><body><p><span style=" color:#55aaff;">{current_progress}</span></p></body></html>'.replace(
                "{current_progress}", current_progress))

    @pyqtSlot(int)
    def volume_slider_func(self, value):
        self.player.setVolume(value)
        if value == 0:
            #静音
            self.ui.pushButton_7.setIcon(QIcon('images/sound_off.png'))
        else:
            #正常
            self.ui.pushButton_7.setIcon(QIcon('images/sound_on.png'))

    def closeEvent(self,event):
        reply = QMessageBox.question(self, '关闭', "确定要退出吗?",
                                     QMessageBox.Yes | QMessageBox.No, QMessageBox.Yes)
        if reply == QMessageBox.Yes:
            self.player.stop()
            event.accept()
        else:
            event.ignore()

    def keyPressEvent(self, event):
        if event.key()==Qt.Key.Key_Escape:
            self.close()

    def thread_it(self,func,*args):
        t=threading.Thread(target=func,args=args)
        t.setDaemon(True)
        t.start()

if __name__ == '__main__':
    app=QApplication(sys.argv)
    app.setStyle("Fusion")
    ui=Listen_Sound_Window()
    ui.show()
    sys.exit(app.exec_())

2.小说搜索UI.py(UI界面)

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file '小说搜索UI.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 MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(1496, 810)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setStyleSheet("QPushButton:hover{\n"
" border-color:#55aaff;\n"
"}\n"
"\n"
"QPushButton{ \n"
" border: 1px solid ;\n"
" border-radius: 4px;\n"
" min-height: 25px;\n"
"}\n"
"QLineEdit{ \n"
" border: 1px solid ;\n"
" border-radius: 4px;\n"
"}\n"
"QLineEdit:hover{\n"
" border-color:#55aaff;\n"
"}\n"
"\n"
"QComboBox { \n"
" border: 1px solid ;\n"
" border-radius:4px;\n"
" min-height: 20px;\n"
"}\n"
"QComboBox:hover{\n"
" border-color:#55aaff;\n"
"}\n"
"/* 下拉列表里的颜色 */\n"
"QComboBox QAbstractItemView {\n"
" border: 2px solid darkgray;\n"
" selection-background-color:#1E90FF;\n"
"}\n"
"")
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.horizontalLayout_16 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_16.setObjectName("horizontalLayout_16")
        self.tabWidget = QtWidgets.QTabWidget(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.groupBox = QtWidgets.QGroupBox(self.tab)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.tableWidget_1 = QtWidgets.QTableWidget(self.groupBox)
        self.tableWidget_1.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableWidget_1.setAlternatingRowColors(True)
        self.tableWidget_1.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.tableWidget_1.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.tableWidget_1.setObjectName("tableWidget_1")
        self.tableWidget_1.setColumnCount(1)
        self.tableWidget_1.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_1.setHorizontalHeaderItem(0, item)
        self.tableWidget_1.horizontalHeader().setStretchLastSection(True)
        self.verticalLayout_3.addWidget(self.tableWidget_1)
        self.horizontalLayout_5.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.tableWidget_2 = QtWidgets.QTableWidget(self.groupBox_2)
        self.tableWidget_2.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableWidget_2.setAlternatingRowColors(True)
        self.tableWidget_2.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.tableWidget_2.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.tableWidget_2.setObjectName("tableWidget_2")
        self.tableWidget_2.setColumnCount(1)
        self.tableWidget_2.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_2.setHorizontalHeaderItem(0, item)
        self.tableWidget_2.horizontalHeader().setStretchLastSection(True)
        self.verticalLayout_4.addWidget(self.tableWidget_2)
        self.horizontalLayout_5.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.tableWidget_3 = QtWidgets.QTableWidget(self.groupBox_3)
        self.tableWidget_3.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableWidget_3.setAlternatingRowColors(True)
        self.tableWidget_3.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.tableWidget_3.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.tableWidget_3.setObjectName("tableWidget_3")
        self.tableWidget_3.setColumnCount(1)
        self.tableWidget_3.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_3.setHorizontalHeaderItem(0, item)
        self.tableWidget_3.horizontalHeader().setStretchLastSection(True)
        self.verticalLayout_5.addWidget(self.tableWidget_3)
        self.horizontalLayout_5.addWidget(self.groupBox_3)
        self.verticalLayout_2.addLayout(self.horizontalLayout_5)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.groupBox_4 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_4.setObjectName("groupBox_4")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.groupBox_4)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.tableWidget_4 = QtWidgets.QTableWidget(self.groupBox_4)
        self.tableWidget_4.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableWidget_4.setAlternatingRowColors(True)
        self.tableWidget_4.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.tableWidget_4.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.tableWidget_4.setObjectName("tableWidget_4")
        self.tableWidget_4.setColumnCount(1)
        self.tableWidget_4.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_4.setHorizontalHeaderItem(0, item)
        self.tableWidget_4.horizontalHeader().setStretchLastSection(True)
        self.verticalLayout_6.addWidget(self.tableWidget_4)
        self.horizontalLayout_6.addWidget(self.groupBox_4)
        self.groupBox_5 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.tableWidget_5 = QtWidgets.QTableWidget(self.groupBox_5)
        self.tableWidget_5.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableWidget_5.setAlternatingRowColors(True)
        self.tableWidget_5.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.tableWidget_5.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.tableWidget_5.setObjectName("tableWidget_5")
        self.tableWidget_5.setColumnCount(1)
        self.tableWidget_5.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_5.setHorizontalHeaderItem(0, item)
        self.tableWidget_5.horizontalHeader().setStretchLastSection(True)
        self.verticalLayout_7.addWidget(self.tableWidget_5)
        self.horizontalLayout_6.addWidget(self.groupBox_5)
        self.groupBox_6 = QtWidgets.QGroupBox(self.tab)
        self.groupBox_6.setObjectName("groupBox_6")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.groupBox_6)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.tableWidget_6 = QtWidgets.QTableWidget(self.groupBox_6)
        self.tableWidget_6.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableWidget_6.setAlternatingRowColors(True)
        self.tableWidget_6.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.tableWidget_6.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.tableWidget_6.setObjectName("tableWidget_6")
        self.tableWidget_6.setColumnCount(1)
        self.tableWidget_6.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_6.setHorizontalHeaderItem(0, item)
        self.tableWidget_6.horizontalHeader().setStretchLastSection(True)
        self.verticalLayout_8.addWidget(self.tableWidget_6)
        self.horizontalLayout_6.addWidget(self.groupBox_6)
        self.verticalLayout_2.addLayout(self.horizontalLayout_6)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_17 = QtWidgets.QVBoxLayout(self.tab_2)
        self.verticalLayout_17.setObjectName("verticalLayout_17")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label = QtWidgets.QLabel(self.tab_2)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.lineEdit = QtWidgets.QLineEdit(self.tab_2)
        self.lineEdit.setAlignment(QtCore.Qt.AlignCenter)
        self.lineEdit.setObjectName("lineEdit")
        self.horizontalLayout_2.addWidget(self.lineEdit)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.pushButton = QtWidgets.QPushButton(self.tab_2)
        self.pushButton.setMinimumSize(QtCore.QSize(120, 27))
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout_4.addWidget(self.pushButton)
        self.horizontalLayout_2.addLayout(self.horizontalLayout_4)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_2 = QtWidgets.QLabel(self.tab_2)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_3.addWidget(self.label_2)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        self.comboBox = QtWidgets.QComboBox(self.tab_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox.sizePolicy().hasHeightForWidth())
        self.comboBox.setSizePolicy(sizePolicy)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.horizontalLayout_3.addWidget(self.comboBox)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.verticalLayout.addLayout(self.horizontalLayout_3)
        self.verticalLayout_17.addLayout(self.verticalLayout)
        self.frame = QtWidgets.QFrame(self.tab_2)
        self.frame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_21 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_21.setObjectName("verticalLayout_21")
        self.verticalLayout_20 = QtWidgets.QVBoxLayout()
        self.verticalLayout_20.setObjectName("verticalLayout_20")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.tableWidget_7 = QtWidgets.QTableWidget(self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.tableWidget_7.sizePolicy().hasHeightForWidth())
        self.tableWidget_7.setSizePolicy(sizePolicy)
        self.tableWidget_7.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.tableWidget_7.setAlternatingRowColors(True)
        self.tableWidget_7.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.tableWidget_7.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.tableWidget_7.setObjectName("tableWidget_7")
        self.tableWidget_7.setColumnCount(1)
        self.tableWidget_7.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.tableWidget_7.setHorizontalHeaderItem(0, item)
        self.tableWidget_7.horizontalHeader().setStretchLastSection(True)
        self.horizontalLayout_8.addWidget(self.tableWidget_7)
        self.verticalLayout_20.addLayout(self.horizontalLayout_8)
        self.verticalLayout_21.addLayout(self.verticalLayout_20)
        self.verticalLayout_17.addWidget(self.frame)
        self.frame_8 = QtWidgets.QFrame(self.tab_2)
        self.frame_8.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_8.setObjectName("frame_8")
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout(self.frame_8)
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem2)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem3)
        self.label_3 = QtWidgets.QLabel(self.frame_8)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_7.addWidget(self.label_3)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem4)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem5)
        self.horizontalLayout_10.addLayout(self.horizontalLayout_7)
        self.verticalLayout_17.addWidget(self.frame_8)
        self.verticalLayout_17.setStretch(0, 2)
        self.verticalLayout_17.setStretch(1, 7)
        self.verticalLayout_17.setStretch(2, 1)
        self.tabWidget.addTab(self.tab_2, "")
        self.horizontalLayout_16.addWidget(self.tabWidget)
        self.line = QtWidgets.QFrame(self.centralwidget)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_16.addWidget(self.line)
        self.frame_2 = QtWidgets.QFrame(self.centralwidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_2.sizePolicy().hasHeightForWidth())
        self.frame_2.setSizePolicy(sizePolicy)
        self.frame_2.setMinimumSize(QtCore.QSize(250, 0))
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.frame_2)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.frame_3 = QtWidgets.QFrame(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame_3.sizePolicy().hasHeightForWidth())
        self.frame_3.setSizePolicy(sizePolicy)
        self.frame_3.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.frame_3)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_9.setObjectName("horizontalLayout_9")
        self.label_4 = QtWidgets.QLabel(self.frame_3)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_4.sizePolicy().hasHeightForWidth())
        self.label_4.setSizePolicy(sizePolicy)
        self.label_4.setScaledContents(True)
        self.label_4.setObjectName("label_4")
        self.horizontalLayout_9.addWidget(self.label_4)
        self.verticalLayout_9.addLayout(self.horizontalLayout_9)
        self.verticalLayout_10.addWidget(self.frame_3)
        self.frame_5 = QtWidgets.QFrame(self.frame_2)
        self.frame_5.setFrameShape(QtWidgets.QFrame.Box)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.horizontalLayout_13 = QtWidgets.QHBoxLayout(self.frame_5)
        self.horizontalLayout_13.setObjectName("horizontalLayout_13")
        self.formLayout = QtWidgets.QFormLayout()
        self.formLayout.setObjectName("formLayout")
        self.label_5 = QtWidgets.QLabel(self.frame_5)
        self.label_5.setObjectName("label_5")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_5)
        self.label_6 = QtWidgets.QLabel(self.frame_5)
        self.label_6.setObjectName("label_6")
        self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.label_6)
        self.label_7 = QtWidgets.QLabel(self.frame_5)
        self.label_7.setObjectName("label_7")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_7)
        self.label_8 = QtWidgets.QLabel(self.frame_5)
        self.label_8.setObjectName("label_8")
        self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.label_8)
        self.label_9 = QtWidgets.QLabel(self.frame_5)
        self.label_9.setObjectName("label_9")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_9)
        self.label_10 = QtWidgets.QLabel(self.frame_5)
        self.label_10.setObjectName("label_10")
        self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.label_10)
        self.label_11 = QtWidgets.QLabel(self.frame_5)
        self.label_11.setObjectName("label_11")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.label_11)
        self.label_12 = QtWidgets.QLabel(self.frame_5)
        self.label_12.setObjectName("label_12")
        self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.label_12)
        self.label_21 = QtWidgets.QLabel(self.frame_5)
        self.label_21.setObjectName("label_21")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_21)
        self.label_22 = QtWidgets.QLabel(self.frame_5)
        self.label_22.setObjectName("label_22")
        self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.label_22)
        self.label_23 = QtWidgets.QLabel(self.frame_5)
        self.label_23.setObjectName("label_23")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_23)
        self.label_24 = QtWidgets.QLabel(self.frame_5)
        self.label_24.setObjectName("label_24")
        self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.label_24)
        self.label_26 = QtWidgets.QLabel(self.frame_5)
        self.label_26.setObjectName("label_26")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_26)
        self.label_27 = QtWidgets.QLabel(self.frame_5)
        self.label_27.setObjectName("label_27")
        self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.label_27)
        self.horizontalLayout_13.addLayout(self.formLayout)
        self.verticalLayout_10.addWidget(self.frame_5)
        self.groupBox_7 = QtWidgets.QGroupBox(self.frame_2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_7.sizePolicy().hasHeightForWidth())
        self.groupBox_7.setSizePolicy(sizePolicy)
        self.groupBox_7.setObjectName("groupBox_7")
        self.horizontalLayout_11 = QtWidgets.QHBoxLayout(self.groupBox_7)
        self.horizontalLayout_11.setObjectName("horizontalLayout_11")
        self.label_25 = QtWidgets.QLabel(self.groupBox_7)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_25.sizePolicy().hasHeightForWidth())
        self.label_25.setSizePolicy(sizePolicy)
        self.label_25.setScaledContents(True)
        self.label_25.setWordWrap(True)
        self.label_25.setObjectName("label_25")
        self.horizontalLayout_11.addWidget(self.label_25)
        self.verticalLayout_10.addWidget(self.groupBox_7)
        self.horizontalLayout_16.addWidget(self.frame_2)
        self.line_2 = QtWidgets.QFrame(self.centralwidget)
        self.line_2.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.horizontalLayout_16.addWidget(self.line_2)
        self.frame_4 = QtWidgets.QFrame(self.centralwidget)
        self.frame_4.setMinimumSize(QtCore.QSize(200, 0))
        self.frame_4.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.frame_4)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.groupBox_8 = QtWidgets.QGroupBox(self.frame_4)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.groupBox_8.sizePolicy().hasHeightForWidth())
        self.groupBox_8.setSizePolicy(sizePolicy)
        self.groupBox_8.setObjectName("groupBox_8")
        self.horizontalLayout_12 = QtWidgets.QHBoxLayout(self.groupBox_8)
        self.horizontalLayout_12.setObjectName("horizontalLayout_12")
        self.play_list = QtWidgets.QTableWidget(self.groupBox_8)
        self.play_list.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.play_list.setSelectionMode(QtWidgets.QAbstractItemView.SingleSelection)
        self.play_list.setSelectionBehavior(QtWidgets.QAbstractItemView.SelectRows)
        self.play_list.setObjectName("play_list")
        self.play_list.setColumnCount(1)
        self.play_list.setRowCount(0)
        item = QtWidgets.QTableWidgetItem()
        self.play_list.setHorizontalHeaderItem(0, item)
        self.play_list.horizontalHeader().setStretchLastSection(True)
        self.play_list.verticalHeader().setVisible(True)
        self.horizontalLayout_12.addWidget(self.play_list, 0, QtCore.Qt.AlignHCenter)
        self.verticalLayout_11.addWidget(self.groupBox_8)
        self.horizontalLayout_16.addWidget(self.frame_4)
        self.verticalLayout_13.addLayout(self.horizontalLayout_16)
        self.line_3 = QtWidgets.QFrame(self.centralwidget)
        self.line_3.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.verticalLayout_13.addWidget(self.line_3)
        self.frame_6 = QtWidgets.QFrame(self.centralwidget)
        self.frame_6.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.frame_6.setObjectName("frame_6")
        self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.frame_6)
        self.verticalLayout_14.setContentsMargins(10, -1, -1, -1)
        self.verticalLayout_14.setObjectName("verticalLayout_14")
        self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_14.setContentsMargins(100, -1, 100, -1)
        self.horizontalLayout_14.setObjectName("horizontalLayout_14")
        self.label_play_state = QtWidgets.QLabel(self.frame_6)
        self.label_play_state.setObjectName("label_play_state")
        self.horizontalLayout_14.addWidget(self.label_play_state, 0, QtCore.Qt.AlignHCenter)
        self.pushButton_8 = QtWidgets.QPushButton(self.frame_6)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_8.sizePolicy().hasHeightForWidth())
        self.pushButton_8.setSizePolicy(sizePolicy)
        self.pushButton_8.setObjectName("pushButton_8")
        self.horizontalLayout_14.addWidget(self.pushButton_8)
        self.verticalLayout_14.addLayout(self.horizontalLayout_14)
        self.frame_7 = QtWidgets.QFrame(self.frame_6)
        self.frame_7.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.frame_7)
        self.verticalLayout_12.setContentsMargins(-1, 0, -1, 0)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setContentsMargins(100, 10, 100, -1)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton_2 = QtWidgets.QPushButton(self.frame_7)
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.pushButton_3 = QtWidgets.QPushButton(self.frame_7)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth())
        self.pushButton_3.setSizePolicy(sizePolicy)
        self.pushButton_3.setObjectName("pushButton_3")
        self.horizontalLayout.addWidget(self.pushButton_3)
        self.pushButton_4 = QtWidgets.QPushButton(self.frame_7)
        self.pushButton_4.setObjectName("pushButton_4")
        self.horizontalLayout.addWidget(self.pushButton_4)
        self.pushButton_5 = QtWidgets.QPushButton(self.frame_7)
        self.pushButton_5.setObjectName("pushButton_5")
        self.horizontalLayout.addWidget(self.pushButton_5)
        self.pushButton_6 = QtWidgets.QPushButton(self.frame_7)
        self.pushButton_6.setObjectName("pushButton_6")
        self.horizontalLayout.addWidget(self.pushButton_6)
        self.pushButton_7 = QtWidgets.QPushButton(self.frame_7)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_7.sizePolicy().hasHeightForWidth())
        self.pushButton_7.setSizePolicy(sizePolicy)
        self.pushButton_7.setObjectName("pushButton_7")
        self.horizontalLayout.addWidget(self.pushButton_7)
        self.volume_slider = QtWidgets.QSlider(self.frame_7)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.volume_slider.sizePolicy().hasHeightForWidth())
        self.volume_slider.setSizePolicy(sizePolicy)
        self.volume_slider.setMaximum(100)
        self.volume_slider.setOrientation(QtCore.Qt.Horizontal)
        self.volume_slider.setObjectName("volume_slider")
        self.horizontalLayout.addWidget(self.volume_slider)
        self.verticalLayout_12.addLayout(self.horizontalLayout)
        self.horizontalLayout_15 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_15.setContentsMargins(200, 10, 200, -1)
        self.horizontalLayout_15.setObjectName("horizontalLayout_15")
        self.progress_slider = QtWidgets.QSlider(self.frame_7)
        self.progress_slider.setOrientation(QtCore.Qt.Horizontal)
        self.progress_slider.setObjectName("progress_slider")
        self.horizontalLayout_15.addWidget(self.progress_slider)
        self.label_play_time = QtWidgets.QLabel(self.frame_7)
        self.label_play_time.setObjectName("label_play_time")
        self.horizontalLayout_15.addWidget(self.label_play_time)
        self.verticalLayout_12.addLayout(self.horizontalLayout_15)
        self.verticalLayout_14.addWidget(self.frame_7)
        self.verticalLayout_13.addWidget(self.frame_6)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 1496, 26))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "小说听听听"))
        self.groupBox.setTitle(_translate("MainWindow", "听China"))
        item = self.tableWidget_1.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "书名"))
        self.groupBox_2.setTitle(_translate("MainWindow", "有声小说"))
        item = self.tableWidget_2.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "书名"))
        self.groupBox_3.setTitle(_translate("MainWindow", "听书宝"))
        item = self.tableWidget_3.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "书名"))
        self.groupBox_4.setTitle(_translate("MainWindow", "I275"))
        item = self.tableWidget_4.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "书名"))
        self.groupBox_5.setTitle(_translate("MainWindow", "听书cn"))
        item = self.tableWidget_5.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "书名"))
        self.groupBox_6.setTitle(_translate("MainWindow", "芒果听"))
        item = self.tableWidget_6.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "书名"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "小说推荐"))
        self.label.setText(_translate("MainWindow", "关键字:"))
        self.pushButton.setText(_translate("MainWindow", "搜索"))
        self.label_2.setText(_translate("MainWindow", "音源:"))
        self.comboBox.setItemText(0, _translate("MainWindow", "-请选择-"))
        self.comboBox.setItemText(1, _translate("MainWindow", "听China"))
        self.comboBox.setItemText(2, _translate("MainWindow", "有声小说"))
        self.comboBox.setItemText(3, _translate("MainWindow", "听书宝"))
        self.comboBox.setItemText(4, _translate("MainWindow", "I275"))
        self.comboBox.setItemText(5, _translate("MainWindow", "听书cn"))
        self.comboBox.setItemText(6, _translate("MainWindow", "芒果听"))
        item = self.tableWidget_7.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "书名"))
        self.label_3.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\"><span style=\" color:#55aaff;\">请先搜索</span></p></body></html>"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "小说搜索"))
        self.label_4.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\">这里显示小说封面</p></body></html>"))
        self.label_5.setText(_translate("MainWindow", "名称:"))
        self.label_6.setText(_translate("MainWindow", "未知"))
        self.label_7.setText(_translate("MainWindow", "状态:"))
        self.label_8.setText(_translate("MainWindow", "未知"))
        self.label_9.setText(_translate("MainWindow", "作者:"))
        self.label_10.setText(_translate("MainWindow", "未知"))
        self.label_11.setText(_translate("MainWindow", "主播:"))
        self.label_12.setText(_translate("MainWindow", "未知"))
        self.label_21.setText(_translate("MainWindow", "类型:"))
        self.label_22.setText(_translate("MainWindow", "未知"))
        self.label_23.setText(_translate("MainWindow", "更新时间:"))
        self.label_24.setText(_translate("MainWindow", "未知"))
        self.label_26.setText(_translate("MainWindow", "剧集数量"))
        self.label_27.setText(_translate("MainWindow", "未知"))
        self.groupBox_7.setTitle(_translate("MainWindow", "介绍"))
        self.label_25.setText(_translate("MainWindow", "<html><head/><body><p align=\"center\">未知</p></body></html>"))
        self.groupBox_8.setTitle(_translate("MainWindow", "点播列表"))
        item = self.play_list.horizontalHeaderItem(0)
        item.setText(_translate("MainWindow", "剧集"))
        self.label_play_state.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#55aaff;\">播放器已就绪</span></p></body></html>"))
        self.pushButton_8.setText(_translate("MainWindow", "收起"))
        self.pushButton_2.setText(_translate("MainWindow", "播放"))
        self.pushButton_3.setText(_translate("MainWindow", "暂停"))
        self.pushButton_4.setText(_translate("MainWindow", "停止"))
        self.pushButton_5.setText(_translate("MainWindow", "上一集"))
        self.pushButton_6.setText(_translate("MainWindow", "下一集"))
        self.pushButton_7.setText(_translate("MainWindow", "静音"))
        self.label_play_time.setText(_translate("MainWindow", "<html><head/><body><p><span style=\" color:#55aaff;\">0:00/0:00</span></p></body></html>"))

本次使用PyQt5制作了一款在线小说播放器,支持六个音源的搜索,音频内容均来自互联网,UI没有详细地取设计,使用的默认的Fusion作为整体的主题皮肤,在播放器中使用第三方库qtawesome小图标,可视效果更强。写本文是为了记录一下开发思路与设计流程。思路、代码方面有什么不足欢迎各位大佬指正、批评!觉得还行,能点个赞吗? img

本文为互联网自动采集或经作者授权后发布,本文观点不代表立场,若侵权下架请联系我们删帖处理!文章出自:https://blog.csdn.net/a1397852386/article/details/121757476
-- 展开阅读全文 --
BUUCTF Web [极客大挑战 2019]Knife
« 上一篇 06-24
安全面试之XSS(跨站脚本攻击)
下一篇 » 07-24

发表评论

成为第一个评论的人

热门文章

标签TAG

最近回复