Define global fonts, such as family and size #206
-
Define global fonts, such as family and size #205 import ttkbootstrap as ttk app = ttk.Window() default_font = font.nametofont('TkDefaultFont') lbl = ttk.Label(text="Testing") app.mainloop() |
Beta Was this translation helpful? Give feedback.
Answered by
israel-dryer
Feb 15, 2022
Replies: 1 comment 3 replies
-
global font options can be set as in import ttkbootstrap as ttk
from ttkbootstrap.constants import *
from ttkbootstrap import font
app = ttk.Window()
default_font = font.nametofont('TkDefaultFont')
default_font['size'] = 16
lbl = ttk.Label(text="Testing")
lbl.pack(padx=20, pady=20)
app.mainloop() |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
funchan24
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
global font options can be set as in
Regular font
16pt font