I have been looking all over Google and SO for something that might help me with this seemingly simple problem.
I have a button in Tkinter and I want its weight to be bold. I've tried this:
test = Button(..., text="Test", font=("Arial",10,"bold"), command=...)
And this:
test = Button(..., text="Test", font="Arial 10 bold", command=...)
But both return unknown option -font errors.
Any help would be greatly appreciated.
Can you please cut and paste the whole error you get? font is most definitely an option for the tkinter Button class.
My guess is, when you think you are creating a tkinter Button widget, you're creating something different -- maybe a ttk Button widget which doesn't support the font attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With