v0.1.5.0(2024/06/08)

1. [aio.py]: 主界面切换不同功能时保持placehold一致
2. [brake.py]: 由于制动采集模板和内容的更改,适配了新的数据,更新了算法
3. [layout.xlsx]: 添加了各个功能的流程图
4. [aio.py]: 重新调整界面配色
5. [aio.py]: 修改了write2textbox函数,定制化显示每一行的颜色,针对每一行可自定义输出内容颜色
6. [brake.py/iso.py/current.py]: 由于第 5 点的更改,同时修改了其他文件相关引用的部分
This commit is contained in:
2024-06-08 15:58:27 +08:00
parent cb8dc2584f
commit 35d7e41ffd
5 changed files with 134 additions and 167 deletions

View File

@ -12,7 +12,7 @@ def traversal_files(path, w2t):
# 返回值:路径下的文件夹列表 路径下的文件列表
if not exists(path):
msg = f'数据文件夹{path}不存在,请确认后重试......'
w2t(msg, 0, 1)
w2t(msg, 0, 1, 'red')
else:
dirs = files = []
for item in scandir(path):
@ -162,7 +162,7 @@ def main(path, w2t):
ws.cell(row=i, column=7).value = None
tmpfile = f"{path}\\data.txt"
except Exception as Err:
w2t(f"发生错误:{Err}", 0, 2)
w2t(f"发生错误:{Err}", 0, 2, 'red')
p_files = []
for file in files:
@ -187,7 +187,7 @@ def main(path, w2t):
wb.close()
if len(p_files) == 0:
w2t(f"目录 {path} 下没有需要处理的文件,需要确认......", 0, 3)
w2t(f"目录 {path} 下没有需要处理的文件,需要确认......", 0, 3, 'red')
else:
remove(tmpfile)
w2t("------------------------------------------")