0

I would like to display a file having Unicode data (Malayalam) in a window with a scrolled area, with all the named entities in different colours in tkinter (PYTHON).

For example, consider the sentence - 'Python is a programming language.'

In my window, Python should be in a different colour. My file contains more than 100 lines. So I need the display in a scrolled area and text in it having different colours.

Thanks in advance for your help.

4

1 回答 1

1

You will want to use the text widget. To color certain words or characters you will need to define a tag, and apply that tag to a range of text.

于 2013-05-30T10:51:39.787 回答