can someone tell me how can I change color to certain parts of a tkinter text widget. This is a simple view of my code (it's a chat so it has to display who sent the message):
T = Text(window, bg="black", fg="white", font=("bold", 12))
def addMessage(text)
T.insert("me: ")
T.insert(text+"\n")
addMessage("hi")
how can I set the "me: " part to be blue and the text part to stay white?