tkinter color code example
Example 1: gui.configure(background="light green") in tkinter
gui.configure(background="light green")
Example 2: text color tkinter
from Tkinter import *
def onclick():
pass
root = Tk()
text = Text(root)
text.insert(INSERT, "Hello.....")
text.insert(END, "Bye Bye.....")
text.pack()
text.tag_add("here", "1.0", "1.4")
text.tag_add("start", "1.8", "1.13")
text.tag_config("here", background="yellow", foreground="blue")
text.tag_config("start", background="black", foreground="green")
root.mainloop()
Example 3: tkinter background color
root.configure(background='black')
Example 4: tkinter color chart
gray99
black
lawn green