Skip to content
Discussion options

You must be logged in to vote

This is a ttk quirk rather than a ttkbootstrap bug: ttk::entry doesn't read its font from the style. style.configure('info.TEntry', font=('Helvetica', 24)) is accepted and stored (you can see it via ttk::style lookup info.TEntry -font), but the entry never renders it — so the text stays small. Unlike TLabel/TButton, the editable text widgets (TEntry, TCombobox, TSpinbox) carry -font as a widget option that defaults to the named font TkTextFont, and the widget always uses that instead of the style.

Two ways to actually change it:

1. Set the font as a widget option (simplest — per widget):

self.entry = ttk.Entry(bootstyle='info', font=('Helvetica', 24))
# or after creation:
self.entry.confi…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by israel-dryer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants