Home > Mobile >  How to set custom color for symbols like*,#,etc in python tkinter
How to set custom color for symbols like*,#,etc in python tkinter

Time:03-05

How to set specific color for certain symbols like ,#,etc ' example if I type "" it's color should be blue and other stay remain same.

typedecker sir i am binding you function like this but this is not working


from tkinter import*
root = Tk()
def check_for_symbols(symbol_dict) :
    for i in symbol_dict :
        text.tag_remove(i, '1.0', END)
        
        pos = 1.0
        while 1:
            pos = text.search(i, pos, regexp = True, stopindex = END)
            if not pos:
                break
            last_pos = '%s            
  • Related