[modify] add modification method to change tabview font
This commit is contained in:
parent
e1716332d7
commit
9971b51457
@ -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')
|
||||
|
||||
---
|
||||
|
||||
|
Reference in New Issue
Block a user