Python Forum
How to make button text bold in Tkinter?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make button text bold in Tkinter?
#1
I've googled this but can't find an answer. I just want to make the text on a button bold.
Reply
#2
import tkinter as tk

root = tk.Tk()

button = tk.Button(None, text='Button', font='sans 16 bold').pack()

root.mainloop()
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
Thank you
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  make widgets disappear from tkinter jacksfrustration 12 1,121 Feb-06-2024, 03:58 PM
Last Post: deanhystad
  [Tkinter] TKinter Remove Button Frame Nu2Python 8 957 Jan-16-2024, 06:44 PM
Last Post: rob101
  tkinter - touchscreen, push the button like click the mouse John64 5 829 Jan-06-2024, 03:45 PM
Last Post: deanhystad
  Centering and adding a push button to a grid window, TKinter Edward_ 15 4,710 May-25-2023, 07:37 PM
Last Post: deanhystad
  [Tkinter] how to make label or button not visible with the place method? nowayj63 2 2,785 Jan-03-2023, 06:29 PM
Last Post: Yoriz
Question [Tkinter] How to make split button? teknixstuff 2 1,059 Jan-03-2023, 06:21 PM
Last Post: Yoriz
  [Tkinter] Updating tkinter text BliepMonster 5 5,950 Nov-28-2022, 01:42 AM
Last Post: deanhystad
  Can't change the colour of Tk button text Pilover 6 14,716 Nov-15-2022, 10:11 PM
Last Post: woooee
  [PyQt] QAction bold part of the string argument malonn 4 2,269 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,839 Jun-26-2022, 06:26 PM
Last Post: menator01

Forum Jump:

User Panel Messages

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