完成了电流->转矩的转变,基本完成
This commit is contained in:
22
readme.md
22
readme.md
@ -22,6 +22,13 @@
|
||||
|
||||
## 三、注意事项
|
||||
|
||||
1. 仅适用于 xCore 2.3.0.7 及以上的版本
|
||||
2. 单轴电机电流数据处理,至少需要三个完整周期
|
||||
3. 执行制动测试/电机电流采集/耐久测试的时候,执行过程中停止,再次运行需要等待一分钟左右,输出框会有提示
|
||||
4. 其他使用方法和之前工具一致
|
||||
|
||||
> **需要使用 assets/files/projects/ 下的工程,寄存器文件以及配置文件等!!!**
|
||||
|
||||
## 四、发版记录
|
||||
|
||||
## 五、其他
|
||||
@ -31,13 +38,24 @@
|
||||
打包时,只需要修改 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 -p ../code/commons/openapi.py -p ../code/automatic_test/do_current.py -p ../code/automatic_test/do_brake.py --exclude-module=scipy --exclude-module=matplotlib
|
||||
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/common/clibs.py -p ../code/commom/openapi.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/automatic_test/do_current.py -p ../code/automatic_test/do_brake.py -p ../code/durable_docs/factory_test.py -p ../code/durable_docs/create_plot.py --exclude-module=scipy
|
||||
```
|
||||
|
||||
### 2. tabview 组件字体修改
|
||||
|
||||
customtkinter的tabview组件不支持修改字体大小,可以参考 [Changing Font of a Tabview](https://github.com/TomSchimansky/CustomTkinter/issues/2296) 进行手动修改源码实现:
|
||||
customtkinter的tabview组件不支持修改字体大小,解决方法可参考如下:
|
||||
|
||||
Method 1:可以参考 [Changing Font of a Tabview](https://github.com/TomSchimansky/CustomTkinter/issues/2296) 进行手动修改源码实现:
|
||||
|
||||
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')
|
||||
|
||||
Method 2:
|
||||
|
||||
self.tabview_bottom._segmented_button.configure(font=ctk.CTkFont(family="Consolas", size=18, weight="bold"))
|
||||
|
||||
### 3. scroll frame 不支持修改高度和宽度
|
||||
|
||||
https://github.com/TomSchimansky/CustomTkinter/pull/1765/files
|
Reference in New Issue
Block a user