Answers for "how to bold text in textbox in tkinter"

0

tkinter bold text

label = Label(root, text='Grepper', font='Helvetica 18 bold')
label.pack()
Posted by: Guest on May-01-2021
0

how to make text bold in tkinter

Label = Label(frame1, text='HowRU', font=('Helvetica', 18, 'bold')) 
label.pack()
Posted by: Guest on September-02-2021
0

how to bold text in textbox in tkinter

from tkinter import font
def bolder():
    bold_font=font.Font(my_text,my_text.cget("font"))   #my_text is text box variable name 
    bold_font.configure(weight="bold")					

    my_text.tag_configure("bold",font=bold_font)

    current_tags=my_text.tag_names("sel.first")

    if "bold" in current_tags:
        my_text.tag_remove("bold","sel.first","sel.last")
    else:
        my_text.tag_add("bold","sel.first","sel.last")
Posted by: Guest on September-09-2021

Code answers related to "how to bold text in textbox in tkinter"

Python Answers by Framework

Browse Popular Code Answers by Language