How to increase Checkbutton size - Tkinter

Viewed 5929

Is it possible to enlarge the tiny check box of the Checkbutton object? The size is out of proportion when increasing the text size. I searched through the following link (Checkbutton) and can't find anything about the actual size of the box. Thank you for your help.

2 Answers

3 years late, but, now it's possible. firstly, you need to find out what type the checkbutton is. we do that in the following way:

# making checkbutton
option_var = tk.StringVar()

checkbutton = ttk.Checkbutton(text='abc', variable = option_var, onvalue'hi', offvalue='bye')

checkbutton.pack()

# checking checkbutton style
print(checkbutton.winfo.class())
            

in most cases, the checkbutton style would be 'TCheckbutton'. all that's left is to configure it

style = ttk.Style(root)
style.configure('TCheckbutton', font = 11)
Related