Label background and foreground
from Tkinter import *
root = Tk()
labelfont = ('times', 20, 'bold')
widget = Label(root, text='Hello config world')
widget.config(bg='black', fg='yellow')
widget.pack(expand=YES, fill=BOTH)
root.mainloop()
Related examples in the same category