Publisher review:Label background and foreground script explains the difference between a label background and foreground. Source code:
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()
Label background and foreground is a Perl script for Snippets scripts design by java2s.com.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
explains the difference between a label background and foreground.
Operating system:Windows / Linux / Mac OS / BSD / Solaris