Python Forum
[Tkinter] changing title text to bold in tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tkinter] changing title text to bold in tkinter
#1
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
Reply
#2
I do not think you can. Or at least I could not find anything in the docs. on that subject.
I welcome all feedback.
The only dumb question, is one that doesn't get asked.
My Github
How to post code using bbtags


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


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tkinter] Updating tkinter text BliepMonster 5 5,670 Nov-28-2022, 01:42 AM
Last Post: deanhystad
  [PyQt] QAction bold part of the string argument malonn 4 2,189 Sep-12-2022, 05:00 PM
Last Post: malonn
  [Tkinter] The Text in the Label widget Tkinter cuts off the Long text in the view malmustafa 4 4,669 Jun-26-2022, 06:26 PM
Last Post: menator01
  [Tkinter] Tkinter Window Has no Title Bar gw1500se 4 2,795 Nov-07-2021, 05:14 PM
Last Post: gw1500se
  [Tkinter] Trouble changing Font within tkinter frame title AnotherSam 1 4,009 Sep-30-2021, 05:57 PM
Last Post: menator01
  tkinter change the text of the checkbox zazas321 1 3,755 Sep-17-2021, 06:19 AM
Last Post: zazas321
  tkinter text widget word wrap position chrisdb 6 7,459 Mar-18-2021, 03:55 PM
Last Post: chrisdb
  [Tkinter] tkinter.Menu – How to make text-variable? Sir 3 5,546 Mar-10-2021, 04:21 PM
Last Post: Sir
Photo Tkinter TEXT background image _ShevaKadu 5 7,654 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  tkinter | Button color text on Click Maryan 2 3,316 Oct-09-2020, 08:56 PM
Last Post: Maryan

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020