添加空函数
This commit is contained in:
parent
ebeca8f6f4
commit
227e155f50
|
@ -3,7 +3,7 @@ import sys
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
from PySide6.QtUiTools import loadUiType
|
from PySide6.QtUiTools import loadUiType
|
||||||
from PySide6 import QtWidgets,QtCore
|
from PySide6 import QtCore
|
||||||
|
|
||||||
|
|
||||||
# 定义公共路径
|
# 定义公共路径
|
||||||
|
@ -24,20 +24,59 @@ class Window(formType, baseType):
|
||||||
self.Log_Output.ensureCursorVisible()
|
self.Log_Output.ensureCursorVisible()
|
||||||
|
|
||||||
|
|
||||||
@QtCore.Slot()
|
@QtCore.Slot() #声明槽函数
|
||||||
def start(self):
|
def start(self):
|
||||||
|
|
||||||
self.Log_Output.append('点击了开始按钮')
|
self.Log_Output.append('点击了开始按钮')
|
||||||
|
# 输入框参数校验
|
||||||
|
num = self.tabWidget.currentIndex()
|
||||||
|
if num == 0:
|
||||||
|
self.check_file_input()
|
||||||
|
else:
|
||||||
|
self.conntest()
|
||||||
|
# 开始运行
|
||||||
|
if num == 0:
|
||||||
|
self.start_run_file()
|
||||||
|
else:
|
||||||
|
self.start_run_db()
|
||||||
|
|
||||||
|
|
||||||
@QtCore.Slot()
|
@QtCore.Slot()
|
||||||
def stop(self):
|
def stop(self):
|
||||||
self.Log_Output.append('点击了停止按钮')
|
self.Log_Output.append('点击了停止按钮')
|
||||||
|
num = self.tabWidget.currentIndex()
|
||||||
|
if num == 0:
|
||||||
|
self.stop_run_file()
|
||||||
|
else:
|
||||||
|
self.stop_run_db()
|
||||||
|
|
||||||
@QtCore.Slot()
|
@QtCore.Slot()
|
||||||
def conntest(self):
|
def conntest(self):
|
||||||
self.Log_Output.append('点击了测试连接按钮')
|
self.Log_Output.append('点击了测试连接按钮')
|
||||||
|
self.check_db_input()
|
||||||
|
# TODO(MH):校验连接信息
|
||||||
|
self.Log_Output.append('数据库连接成功')
|
||||||
|
|
||||||
|
|
||||||
|
def check_file_input(self):
|
||||||
|
self.Log_Output.append('文件参数校验通过')
|
||||||
|
|
||||||
|
|
||||||
|
def check_db_input(self):
|
||||||
|
self.Log_Output.append('数据库参数校验通过,开始连接数据库测试。。。')
|
||||||
|
|
||||||
|
|
||||||
|
def start_run_file(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def start_run_db(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def stop_run_file(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def stop_run_db(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue