mirror of
https://github.com/HaujetZhao/CapsWriter.git
synced 2025-07-13 13:02:08 +08:00
启用引擎时禁用其它按钮,这样就避免了误触,只有停止引擎时才能操作。更新版本号到 2.1.0
This commit is contained in:
parent
6bd5f55dcf
commit
f2b2038a2c
3
.gitignore
vendored
3
.gitignore
vendored
@ -17,5 +17,8 @@ __pycache__
|
|||||||
*test/*
|
*test/*
|
||||||
*.afphoto
|
*.afphoto
|
||||||
icon*.png
|
icon*.png
|
||||||
|
Scripts/*
|
||||||
|
Lib/*
|
||||||
|
pyvenv.cfg
|
||||||
视频封面.png
|
视频封面.png
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
setuptools
|
setuptools
|
||||||
pyaudio
|
pyaudio
|
||||||
keyboard
|
keyboard
|
||||||
aliyunsdkcore
|
aliyun-python-sdk-core
|
||||||
PySide2
|
PySide2
|
||||||
|
pywin32
|
@ -5,7 +5,7 @@ import subprocess
|
|||||||
|
|
||||||
class NormalValue():
|
class NormalValue():
|
||||||
样式文件 = 'misc/style.css'
|
样式文件 = 'misc/style.css'
|
||||||
软件版本 = '2.0.0'
|
软件版本 = '2.1.0'
|
||||||
|
|
||||||
主窗口 = None
|
主窗口 = None
|
||||||
托盘 = None
|
托盘 = None
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# -*- coding: UTF-8 -*-
|
# -*- 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
|
from moduels.gui.List_List import List_List
|
||||||
|
|
||||||
# 添加预设对话框
|
# 添加预设对话框
|
||||||
|
@ -96,6 +96,9 @@ CapsWriter,顾名思义,就是按下大写锁定键来打字的工具。它
|
|||||||
引擎名称 = self.引擎选择下拉框.currentText()
|
引擎名称 = self.引擎选择下拉框.currentText()
|
||||||
if 引擎名称 == '': return
|
if 引擎名称 == '': return
|
||||||
self.启动按钮.setDisabled(True)
|
self.启动按钮.setDisabled(True)
|
||||||
|
self.引擎选择下拉框.setDisabled(True)
|
||||||
|
self.parent().parent().setTabEnabled(1, False)
|
||||||
|
self.parent().parent().setTabEnabled(2, False)
|
||||||
self.停止按钮.setEnabled(True)
|
self.停止按钮.setEnabled(True)
|
||||||
result = 常量.数据库连接.execute(f'''select * from {常量.语音引擎表单名} where 引擎名称 = :引擎名称''',
|
result = 常量.数据库连接.execute(f'''select * from {常量.语音引擎表单名} where 引擎名称 = :引擎名称''',
|
||||||
{'引擎名称': 引擎名称}).fetchone()
|
{'引擎名称': 引擎名称}).fetchone()
|
||||||
@ -113,6 +116,9 @@ CapsWriter,顾名思义,就是按下大写锁定键来打字的工具。它
|
|||||||
# print(self.引擎线程.isRunning())
|
# print(self.引擎线程.isRunning())
|
||||||
self.引擎线程 = None
|
self.引擎线程 = None
|
||||||
self.启动按钮.setEnabled(True)
|
self.启动按钮.setEnabled(True)
|
||||||
|
self.引擎选择下拉框.setEnabled(True)
|
||||||
|
self.parent().parent().setTabEnabled(1, True)
|
||||||
|
self.parent().parent().setTabEnabled(2, True)
|
||||||
self.停止按钮.setDisabled(True)
|
self.停止按钮.setDisabled(True)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user