Skip to content
Advertisement

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

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

JavaScript

Advertisement

Answer

The same procedure as followed in the case of words here by me, can be followed, the only change will be in the regex expression that is to be used to detect the symbols.

JavaScript

The full check_for_symbols function with the necessary changes in place will look like -:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement