How do you change the font and font size in the themed button widget (ttk::button)?
ttk::button .x.buttonTEST -text "TEST" -font ??
# the -font option is not valid with ttk::button
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The look of a ttk::button (in particular for you, its font, but other things too) is controlled exclusively through the style and theme. By setting up the style once, it becomes easy to apply it to many buttons (assuming that’s what you want).
The simplest way to do this is to make a derived style, which is done by prepending some custom prefix onto an existing base style (
TButtonfor buttons).