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)