This repository has been archived on 2025-03-27 . You can view files and clone it, but cannot push or open issues or pull requests.
珞石测试部自动化工具
一、处理逻辑以及原理
1. 数据处理
A. 制动数据
B. 电机电流
C. 激光
D. 基恩士数据
二、自动测试
1. 协议封包解包
2. 制动测试
3. 电机电流测试
三、注意事项
四、发版记录
五、其他
1. 打包命令
打包时,只需要修改 clibs.py 中的 PREFIX 即可,调试时再修改回来
pyinstaller --noconfirm --onedir --windowed --optimize 2 --contents-directory . --upx-dir "D:/Syncthing/common/A_Program/upx-4.2.4-win64/" --add-data "../.venv/Lib/site-packages/customtkinter;customtkinter/" --add-data "../assets:assets" --version-file ../assets/files/version/file_version_info.txt -i ../assets/media/icon.ico ../code/aio.py -p ../code/data_process/brake.py -p ../code/data_process/iso.py -p ../code/data_process/current.py -p ../code/data_process/wavelogger.py -p ../code/commons/clibs.py
2. tabview 组件字体修改
customtkinter的tabview组件不支持修改字体大小,可以参考 Changing Font of a Tabview 进行手动修改源码实现:
a. 运行 pip show customtkinter
,获取到库的路径
b. 修改.../windows/widgets/ctk_tabview.py
c. 增加 from .font.ctk_font import CTkFont
d. 在大概 78 行的位置,增加 font=CTkFont(family="Consolas", size=18, weight='bold')
Description
Languages
Python
100%