Mega Code Archive

 
Categories / Python / GUI Tk
 

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()