python tkinter text改变文本字体颜色_如何更改Tkinter中文本的颜色?

在Tkinter图形用户界面中,我无法确定如何更改文本的颜色。我试着让Label1变成红色,Label2变成蓝色,Label3变成棕色,Label4变成黄色,但我似乎想不出来。提前谢谢:)import random

from Tkinter import * #don't import like this except for Tkinter

root = Tk() #create main window

root.title('Atarashi Sozo')

# Make and place a canvas widget for events and drawing

canvas = Canvas(root, height=600, width=600, relief=RAISED, bg='white')

canvas.grid() #Puts the canvas in the main Tk window

#Create lists

creature = ['is an Animal', 'is a Human', 'is an Artificial Intelligence',

'is an Alien', 'is a Mage','is a Reptillian','is a Shapeshifter',

'is Undead', 'is a Scorpion Hedgehog', 'is an Angel', 'is a Demon']

element = ['controls lightning', 'controls fire', 'controls nature','controls water', 'controls mater', 'controls time', 'controls gravity', 'controls life', 'controls death', 'controls wind',

'can bend any metal','controls the sun', 'controls the moon', 'controls love']

features =

你可能感兴趣的:(python,tkinter,text改变文本字体颜色)