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


Reply
#3
Thank you
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  tkinter Radio button group not setting default selection simonc88 3 966 Mar-20-2025, 06:53 PM
Last Post: buran
  Trying to update label text using a grid button. Edward_ 7 1,653 Dec-18-2024, 03:05 AM
Last Post: Edward_
  Using place for a button, many examples but AttributeError, tkinter Edward_ 3 989 Dec-17-2024, 09:06 PM
Last Post: deanhystad
  Button to +1 in text box everytime it's clicked martyloo 1 1,390 May-01-2024, 02:32 PM
Last Post: Axel_Erfurt
  make widgets disappear from tkinter jacksfrustration 12 5,599 Feb-06-2024, 03:58 PM
Last Post: deanhystad
  [Tkinter] TKinter Remove Button Frame Nu2Python 8 4,730 Jan-16-2024, 06:44 PM
Last Post: rob101
  tkinter - touchscreen, push the button like click the mouse John64 5 2,508 Jan-06-2024, 03:45 PM
Last Post: deanhystad
  Centering and adding a push button to a grid window, TKinter Edward_ 15 14,382 May-25-2023, 07:37 PM
Last Post: deanhystad
  [Tkinter] how to make label or button not visible with the place method? nowayj63 2 5,282 Jan-03-2023, 06:29 PM
Last Post: Yoriz
Question [Tkinter] How to make split button? teknixstuff 2 2,047 Jan-03-2023, 06:21 PM
Last Post: Yoriz

Forum Jump:

User Panel Messages

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