启用引擎时禁用其它按钮,这样就避免了误触,只有停止引擎时才能操作。更新版本号到 2.1.0

This commit is contained in:
Haujet 2021-02-11 08:51:11 +08:00
parent 6bd5f55dcf
commit f2b2038a2c
5 changed files with 14 additions and 4 deletions

3
.gitignore vendored
View File

@ -17,5 +17,8 @@ __pycache__
*test/*
*.afphoto
icon*.png
Scripts/*
Lib/*
pyvenv.cfg
视频封面.png

View File

@ -1,5 +1,6 @@
setuptools
pyaudio
keyboard
aliyunsdkcore
PySide2
aliyun-python-sdk-core
PySide2
pywin32

View File

@ -5,7 +5,7 @@ import subprocess
class NormalValue():
样式文件 = 'misc/style.css'
软件版本 = '2.0.0'
软件版本 = '2.1.0'
主窗口 = None
托盘 = None

View File

@ -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
# 添加预设对话框

View File

@ -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)