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
Download my project scripts


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 11,799 Nov-28-2022, 01:42 AM
Last Post: deanhystad
  [PyQt] QAction bold part of the string argument malonn 4 3,833 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 10,231 Jun-26-2022, 06:26 PM
Last Post: menator01
  [Tkinter] Tkinter Window Has no Title Bar gw1500se 4 4,045 Nov-07-2021, 05:14 PM
Last Post: gw1500se
  [Tkinter] Trouble changing Font within tkinter frame title AnotherSam 1 6,478 Sep-30-2021, 05:57 PM
Last Post: menator01
  tkinter change the text of the checkbox zazas321 1 5,352 Sep-17-2021, 06:19 AM
Last Post: zazas321
  tkinter text widget word wrap position chrisdb 6 10,359 Mar-18-2021, 03:55 PM
Last Post: chrisdb
  [Tkinter] tkinter.Menu – How to make text-variable? Sir 3 7,138 Mar-10-2021, 04:21 PM
Last Post: Sir
Photo Tkinter TEXT background image _ShevaKadu 5 10,289 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  tkinter | Button color text on Click Maryan 2 4,386 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