From f2b2038a2c0984a1d356f024cbac421fe594601a Mon Sep 17 00:00:00 2001 From: Haujet <1292756898@qq.com> Date: Thu, 11 Feb 2021 08:51:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=AF=E7=94=A8=E5=BC=95=E6=93=8E=E6=97=B6?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E5=85=B6=E5=AE=83=E6=8C=89=E9=92=AE=EF=BC=8C?= =?UTF-8?q?=E8=BF=99=E6=A0=B7=E5=B0=B1=E9=81=BF=E5=85=8D=E4=BA=86=E8=AF=AF?= =?UTF-8?q?=E8=A7=A6=EF=BC=8C=E5=8F=AA=E6=9C=89=E5=81=9C=E6=AD=A2=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E6=97=B6=E6=89=8D=E8=83=BD=E6=93=8D=E4=BD=9C=E3=80=82?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC=E5=8F=B7=E5=88=B0=202.1.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +++ requirements.txt | 5 +++-- src/moduels/component/NormalValue.py | 2 +- src/moduels/gui/Group_EditableList.py | 2 +- src/moduels/gui/Tab_CapsWriter.py | 6 ++++++ 5 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index cb6b6f1..c5528dc 100644 --- a/.gitignore +++ b/.gitignore @@ -17,5 +17,8 @@ __pycache__ *test/* *.afphoto icon*.png +Scripts/* +Lib/* +pyvenv.cfg 视频封面.png diff --git a/requirements.txt b/requirements.txt index 6a96bb8..03311cd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,6 @@ setuptools pyaudio keyboard -aliyunsdkcore -PySide2 \ No newline at end of file +aliyun-python-sdk-core +PySide2 +pywin32 \ No newline at end of file diff --git a/src/moduels/component/NormalValue.py b/src/moduels/component/NormalValue.py index de75ccf..a0de3f8 100644 --- a/src/moduels/component/NormalValue.py +++ b/src/moduels/component/NormalValue.py @@ -5,7 +5,7 @@ import subprocess class NormalValue(): 样式文件 = 'misc/style.css' - 软件版本 = '2.0.0' + 软件版本 = '2.1.0' 主窗口 = None 托盘 = None diff --git a/src/moduels/gui/Group_EditableList.py b/src/moduels/gui/Group_EditableList.py index a11667e..ea64fe7 100644 --- a/src/moduels/gui/Group_EditableList.py +++ b/src/moduels/gui/Group_EditableList.py @@ -1,6 +1,6 @@ # -*- coding: UTF-8 -*- -from PySide2.QtWidgets import QGroupBox, QLineEdit, QPushButton, QGridLayout +from PySide2.QtWidgets import QGroupBox, QLineEdit, QPushButton, QGridLayout, QMessageBox from moduels.gui.List_List import List_List # 添加预设对话框 diff --git a/src/moduels/gui/Tab_CapsWriter.py b/src/moduels/gui/Tab_CapsWriter.py index 13a482c..52b3c06 100644 --- a/src/moduels/gui/Tab_CapsWriter.py +++ b/src/moduels/gui/Tab_CapsWriter.py @@ -96,6 +96,9 @@ CapsWriter,顾名思义,就是按下大写锁定键来打字的工具。它 引擎名称 = self.引擎选择下拉框.currentText() if 引擎名称 == '': return self.启动按钮.setDisabled(True) + self.引擎选择下拉框.setDisabled(True) + self.parent().parent().setTabEnabled(1, False) + self.parent().parent().setTabEnabled(2, False) self.停止按钮.setEnabled(True) result = 常量.数据库连接.execute(f'''select * from {常量.语音引擎表单名} where 引擎名称 = :引擎名称''', {'引擎名称': 引擎名称}).fetchone() @@ -113,6 +116,9 @@ CapsWriter,顾名思义,就是按下大写锁定键来打字的工具。它 # print(self.引擎线程.isRunning()) self.引擎线程 = None self.启动按钮.setEnabled(True) + self.引擎选择下拉框.setEnabled(True) + self.parent().parent().setTabEnabled(1, True) + self.parent().parent().setTabEnabled(2, True) self.停止按钮.setDisabled(True)