Make a Label Bold Tkinter
You have to put bold
in quotes, like this: label = Label(frame1, text='Hello', font=('Helvetica', 18, 'bold'))
. This method works for me.
Just put bold in the quotes, example : label = Label(frame1, text = "TEXTTEXT", font = ('Helvetica', 18, 'bold'))
That work for me, configure also work but you have to make one more line of code.
If you want, I can show you how to .configure
:
Just add this code : label.configure(font=("Helvetica","bold", 18))
Thanks. :)
You don't have to configure it separately, you can pass an argument when you are creating the widget:
labelPryProt = Label(frame1, text='TEXTTEXT', font='Helvetica 18 bold')