Python Forum
[Tkinter] changing title text to bold in tkinter - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: [Tkinter] changing title text to bold in tkinter (/thread-26672.html)



changing title text to bold in tkinter - Kumarkv - May-09-2020

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


RE: changing title text to bold in tkinter - menator01 - May-09-2020

I do not think you can. Or at least I could not find anything in the docs. on that subject.


RE: changing title text to bold in tkinter - Larz60+ - May-09-2020

You need to select a font that has a bold format like:
root.title("Counter Example", font="Helvetica 18 bold")