From 9971b51457168418cd18c305aa24ca030efb254f Mon Sep 17 00:00:00 2001 From: gitea Date: Tue, 11 Jun 2024 10:52:09 +0800 Subject: [PATCH] [modify] add modification method to change tabview font --- aio/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/aio/README.md b/aio/README.md index 8898a95..7e16e8a 100644 --- a/aio/README.md +++ b/aio/README.md @@ -101,6 +101,13 @@ pyinstaller --noconfirm --onedir --windowed --add-data "C:/Users/Administrator/A b. ISO-V1000.pdf c. ISO-V100.pdf d. iso-results.xlsx + +#### 其他 +customtkinter的tabview组件不支持修改字体大小,可以参考 [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') ---