how to bold text in textbox in tkinter

Solutions on MaxInterview for how to bold text in textbox in tkinter by the best coders in the world

showing results for - "how to bold text in textbox in tkinter"
Anouk
29 Jun 2018
1label = Label(root, text='Grepper', font='Helvetica 18 bold')
2label.pack()
Émeric
30 Aug 2016
1Label = Label(frame1, text='HowRU', font=('Helvetica', 18, 'bold')) 
2label.pack()
Selena
14 Jul 2016
1from tkinter import font
2def bolder():
3    bold_font=font.Font(my_text,my_text.cget("font"))   #my_text is text box variable name 
4    bold_font.configure(weight="bold")					
5
6    my_text.tag_configure("bold",font=bold_font)
7
8    current_tags=my_text.tag_names("sel.first")
9
10    if "bold" in current_tags:
11        my_text.tag_remove("bold","sel.first","sel.last")
12    else:
13        my_text.tag_add("bold","sel.first","sel.last")
14