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.
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] tkinter.Menu – How to make text-variable? Sir 1 72 5 hours ago
Last Post: deanhystad
Photo Tkinter TEXT background image _ShevaKadu 5 1,420 Nov-02-2020, 10:34 AM
Last Post: joe_momma
  tkinter | Button color text on Click Maryan 2 452 Oct-09-2020, 08:56 PM
Last Post: Maryan
  [Tkinter] Text Upload LearningLittlebyLittle 0 371 Sep-04-2020, 07:55 PM
Last Post: LearningLittlebyLittle
  [Tkinter] Tkinter delete values in Entries, when I'm changing the Frame robertoCarlos 11 897 Jul-29-2020, 07:13 PM
Last Post: deanhystad
  [Tkinter] tkinter, dropdowns with changing options Sheepykins 4 6,154 Jul-03-2020, 06:06 AM
Last Post: jdos
  [Tkinter] Indentation for Tkinter-made Text Editor ShakeyPakey 4 1,044 Jun-08-2020, 03:13 PM
Last Post: menator01
  changing tkinter label from thread nanok66 3 1,077 Jun-07-2020, 01:37 AM
Last Post: nanok66
  How to make button text bold in Tkinter? scratchmyhead 2 1,264 May-16-2020, 02:53 AM
Last Post: scratchmyhead
  [Tkinter] Help setting text/title in dock/panel in tkinter gui FluxApex 2 1,535 Mar-18-2020, 07:15 PM
Last Post: FluxApex

Forum Jump:

User Panel Messages

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