Skip to content

Define global fonts, such as family and size #206

Answered by israel-dryer
funchan24 asked this question in Q&A
Discussion options

You must be logged in to vote

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()

Regular font

16pt font

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@44762339
Comment options

@israel-dryer
Comment options

@44762339
Comment options

Answer selected by funchan24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants