Python Forum

Full Version: changing title text to bold in tkinter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How can i change title bar text to bold in tkinter.

i am getting below error

root.title("Counter Example", font="bold")
Error:
TypeError: wm_title() got an unexpected keyword argument 'font'
My version is python 3.5 and Tcl/tk 8.6
I do not think you can. Or at least I could not find anything in the docs. on that subject.
You need to select a font that has a bold format like:
root.title("Counter Example", font="Helvetica 18 bold")