Mega Code Archive
Categories
/
Python
/
2D Graphics
Label font
from Tkinter import * root = Tk() labelfont = ('times', 20, 'bold') # family, size, style widget = Label(root, text='Hello config world') widget.config(font=labelfont) widget.pack(expand=YES, fill=BOTH) root.mainloop()